プロジェクト

全般

プロフィール

Vote #73148

未完了

Required field Category cannot be edited by Non Member user when adding ticket

Admin Redmine さんが約2年前に追加. 約2年前に更新.

ステータス:
Needs feedback
優先度:
通常
担当者:
-
カテゴリ:
Permissions and roles_17
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
17
version_id:
0
issue_org_id:
12856
author_id:
3715
assigned_to_id:
0
comments:
9
status_id:
10
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
63
ステータス-->[Needs feedback]

説明

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

journals

I can confirm this even in 2.2.1.

This bug has hidden me too.
--------------------------------------------------------------------------------
I was unable to reproduce neither on 2.1 on m.redmine.org nor on trunk.

I think that the problem might actually be that no category is configured in the project?

--------------------------------------------------------------------------------
Normally this appears if there is no category field visible due to tracker/role but it's defined as required.
--------------------------------------------------------------------------------
Could you please reproduce on demo and point me to it?
--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------
Sorry had to set this on new first. I can't switch from "Confirmed" back to "Needs Feedback"
--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------
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?

--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------


related_issues

relates,Closed,12954,Required field can't be read-only

Admin Redmine さんが約2年前に更新

  • カテゴリPermissions and roles_17 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0