Vote #72746
完了Custom fields: 'Multiple values' should be able to be checked and then unchecked
0%
説明
In Administration --> Custom Fields --> Issues:
Click on one of the custom fields that you have set up as a list.¶
Select the "Multiple values" checkbox and click Save.¶
Click into the same custom field again.¶
The "Multiple values" checkbox is now disabled, so you can't uncheck it. In my case, I selected "Multiple values" on a custom field that's used by many projects, but changed my mind and now I'm stuck with it.
At the very least, I think there should be a warning that you won't be able to revert to single values.
This is tested on the BitNami Redmine 2.1.2 stack.
journals
I realize the risk involved with this, but agree some solution needs to be in place... I'm sure most people who check the box have no idea it's a commitment until after the fact.
You can always, of course, go into the database manually, find the custom fields table, and change that field's value in the 'multiple' column to 0.
--------------------------------------------------------------------------------
Fixed in r11167. You are now able to uncheck it. It will remove duplicate values and preserve only one value for each item.
--------------------------------------------------------------------------------
Hi there,
is there a reference which values getting lost? Alphabetically sorted or in which order?
--------------------------------------------------------------------------------
As documented at source:/trunk/app/models/custom_field.rb@11167#L340, value with the highest id for each customized object is kept.
--------------------------------------------------------------------------------
Jean-Philippe Lang wrote:
> As documented at source:/trunk/app/models/custom_field.rb@11167#L340, value with the highest id for each customized object is kept.
Thanks! Haven't seen this comment. :-)
--------------------------------------------------------------------------------
Jean-Philippe Lang wrote:
> Fixed in r11167. You are now able to uncheck it. It will remove duplicate values and preserve only one value for each item.
Am I the only one who interprets the warning message as if only values occuring more than once will be removed? I'm not sure they actually can, but that's my idea of 'duplicate'.
--------------------------------------------------------------------------------
Nicklas Holm wrote:
> Am I the only one who interprets the warning message as if only values occuring more than once will be removed? I'm not sure they actually can, but that's my idea of 'duplicate'.
Right, r11218 changes 'duplicate' to 'multiple' in the warning message.
--------------------------------------------------------------------------------
related_issues
relates,Closed,12819,German translation for #12251 r11168 and #10191 r11173