Project

General

Profile

Actions

Defect #19297

closed

Custom fields with hidden/read-only combination displayed in Issue Edit Form

Added by @ go2null about 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Category:
Issues
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

Observed Behavior
  • UserA has two roles, RoleA and RoleB.
  • CustomFieldA is hidden from RoleB. (In Custom Field Edit form, RoleB is unchecked for Visible.)
  • However, CustomFieldA is visible to RoleA.
  • In the Workflow, CustomFieldA is set as Read-Only for RoleA.
  • UserA can edit TrackerA.
  • In the Issue Edit form, CustomFieldA is displayed. However, any input is ignored (as the Read-Only rule prevents it from being processed.)
Desired/Expected Behavior
  • In the Issue Edit form, CustomFieldA should not be displayed.
Workaround
  • Allow RoleB to view CustomFieldA.
  • In the Workflow, set CustomFieldA as Read-Only for RoleB.
  • The UI code correctly does not display Read-Only fields.
Environment:
  Redmine version                2.6.0.stable
  Ruby version                   1.9.3-p484 (2013-11-22) [x86_64-linux]
  Rails version                  3.2.19
  Environment                    production
  Database adapter               Mysql2
Actions

Also available in: Atom PDF