Required field Category cannot be edited by Non Member user when adding ticket
|Status:||Needs feedback||Start date:|
|Category:||Permissions and roles|
|Resolution:||Cant reproduce||Affected version:||2.2.1|
We have several projects within Redmine and users are either members of one or more projects or just registered as user without any association with any project.
The permissions allow Non Member users to add tickets to any project. In addition the Category-Field was set to be required. Once such a user is trying to add a new ticket, all fields except for the Category-Field are displayed and thereby blocks the user from entering a ticket as the category is required.
Here's the version information for our installation:
Environment: Redmine version 2.1.2.stable.10607 Ruby version 1.8.7 (x86_64-linux) Rails version 3.2.8 Environment production Database adapter MySQL Redmine plugins: redmine_inline_attach_screenshot 0.4.2 redmine_ldap_sync 1.2.0 redmine_wiki_toc 0.0.4
We verified this behaviour also with the 2.2-Version of Redmine:
Environment: Redmine version 2.2.0.stable Ruby version 1.8.7 (x86_64-linux) Rails version 3.2.9 Environment production Database adapter MySQL Redmine plugins: redmine_inline_attach_screenshot 0.4.2 redmine_ldap_sync 1.2.0 redmine_wiki_toc 0.0.4
#5 Updated by Daniel Felix about 9 years ago
- Status changed from Confirmed to New
Etienne Massip wrote:
Could you please reproduce on demo and point me to it?
Well I'm not able to reproduce this after another git pull. I'm not sure, maybe this is fixed by another commit or I have seen this in my testsystem, where I checked some patches. Well Etienne is right, this could not be reproduced.
#8 Updated by Etienne Massip almost 9 years ago
Mathias Kühn wrote:
I was just able to check this on the actual site and you are absolutely right; the field did not appear as the project had no categories defined. However, since this field was set to be required, the ticket could not be created.
Is this what you meant to do, did you expect reporter to create a new category (usually reporters don't have the right to do so)?
Or did you just forget to create the categories?
#9 Updated by Mathias Kühn almost 9 years ago
Well, the original intention was to have one tracker for multiple projects behaving exactly the same, always forcing the user to enter a category. Categories themselves should not be editable by that user. Now we were in the dilemma that this project and ultimately also some others did not have any categories defined, rendering that tracker unusable. To me there are two solutions; either we add another tracker without Categorie being required, or change redmine to enforce the required field only if categories are available.
I believe the way it is implemented now is fine. Anything else would lead to even bigger issues down the road.