gaiaresources / ala-citizenscience

Automatically exported from code.google.com/p/ala-citizenscience
1 stars 4 forks source link

Species field read-only when creating Records in singleSiteMultiTaxa surveys as a normal user #316

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a single site / multi species survey.
2. Create a user without the moderator or admin roles.
3. Attempt to create a sighting using the survey.

What is the expected output? What do you see instead?
Expect to be able to enter a species.
instead, the species field in the sightings table is not editable and displays 
"No species recorded".

Please use labels and text to provide additional information.

Original issue reported on code.google.com by chris.go...@gmail.com on 19 Jul 2012 at 3:32

GoogleCodeExporter commented 9 years ago
The problem is lines 41-43 of singleSiteMultiTaxaRow.jsp.
In the "editable but not a moderation case" the field is assigned to be 
non-editable unless the user has the moderation role.
These lines should be deleted as they are not necessary.

Original comment by chris.go...@gmail.com on 19 Jul 2012 at 3:33

GoogleCodeExporter commented 9 years ago
The problem is actually in RecordPropertyFormField.java, where a species form 
field type was being interpreted as a moderation form field. This was causing 
the field to be read only when edited as a normal user.

Original comment by aaron.lo...@gmail.com on 5 Sep 2012 at 2:19

GoogleCodeExporter commented 9 years ago

Original comment by aaron.lo...@gmail.com on 5 Sep 2012 at 2:19

GoogleCodeExporter commented 9 years ago

Original comment by aaron.lo...@gmail.com on 10 Sep 2012 at 6:09