Project

General

Profile

Actions

Defect #12954

closed

Required field can't be read-only

Added by Daniel Felix almost 12 years ago. Updated almost 8 years ago.

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

0%

Estimated time:
Resolution:
Duplicate
Affected version:

Description

Hi,

I've encountered some bug, which prevents the creation of a new issue.

Maybe this is solved by commiting #12005, but in the current trunk and Redmine 2.2.2 this bug is reproduceable.

Ways to reproduce this error:
  1. Set custom field as required
    custom field is set to required
  2. Define field as read-only in workflow
    workflow sets field to read-only
  3. Try to add issue, as you could see the field isn't displayed in the form but is checked in the required process
    configuration raises error

Maybe this one is related with #12856, which hasn't any relation to custom fields, but the result seems to be the same.

Some suggestion to solve this:
Commit patch from #12005, remove required checkbox from custom fields, set currently required fields to "required" in all workflows. This way there is no way to set a field as read-only and required.

Best regards,
Daniel


Files

custom_field_required.png (18.7 KB) custom_field_required.png custom field is set to required Daniel Felix, 2013-01-23 10:32
workflow_read_only.png (27.9 KB) workflow_read_only.png workflow sets field to read-only Daniel Felix, 2013-01-23 10:32
failure_in_issues.png (40 KB) failure_in_issues.png configuration raises error Daniel Felix, 2013-01-23 10:32

Related issues

Related to Redmine - Feature #12005: Mightful workflow field enhancement: hideNew

Actions
Related to Redmine - Defect #12856: Required field Category cannot be edited by Non Member user when adding ticketNeeds feedback

Actions
Is duplicate of Redmine - Defect #19193: Custom Field definition inconsistencyNew

Actions
Actions #1

Updated by Daniel Felix almost 12 years ago

  • Description updated (diff)
Actions #2

Updated by Daniel Felix almost 12 years ago

  • Description updated (diff)
Actions #3

Updated by Daniel Felix over 11 years ago

  • Affected version (unused) changed from 2.2.2 to 2.3.2
  • Affected version changed from 2.2.2 to 2.3.2

I can reproduce this, even with the current release or with 2.3.2-devel (r12012).

It would be good to prevent setting a field to "hidden", if it is a required field. Or on the other hand, the field should be only required if it is visible to the user.

Actions #4

Updated by Go MAEDA almost 8 years ago

  • Is duplicate of Defect #19193: Custom Field definition inconsistency added
Actions #5

Updated by Go MAEDA almost 8 years ago

  • Status changed from New to Closed
  • Resolution set to Duplicate

Fixed by #19193 (Redmine 3.1.0).

Actions

Also available in: Atom PDF