Feature #12251
closedCustom fields: 'Multiple values' should be able to be checked and then unchecked
0%
Description
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.
Related issues
Updated by Anonymous about 12 years ago
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.
Updated by Jean-Philippe Lang almost 12 years ago
- Subject changed from 'List' custom fields: 'Multiple values' should be able to be checked and then unchecked to Custom fields: 'Multiple values' should be able to be checked and then unchecked
- Status changed from New to Closed
- Assignee set to Jean-Philippe Lang
- Target version set to 2.3.0
- Resolution set to Fixed
Fixed in r11167. You are now able to uncheck it. It will remove duplicate values and preserve only one value for each item.
Updated by Daniel Felix almost 12 years ago
Hi there,
is there a reference which values getting lost? Alphabetically sorted or in which order?
Updated by Jean-Philippe Lang almost 12 years ago
As documented at source:/trunk/app/models/custom_field.rb@11167#L340, value with the highest id for each customized object is kept.
Updated by Daniel Felix almost 12 years ago
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. :-)
Updated by Nicklas Holm almost 12 years ago
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'.
Updated by Jean-Philippe Lang almost 12 years ago
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.