Feature #27097
closedRaise the maximum length of key/value list custom field values from 60 to 255 characters
Description
Hello
I want to use the key/value list.
When I try to enter a new possible value longer than 60 characters it won't be added to the available list.
Also editing existiong entries with longer text won't be saved.
Please set the textlength to 255 characters.
Files
Related issues
Updated by Mischa The Evil almost 9 years ago
- Tracker changed from Patch to Feature
- Subject changed from CustomField Key/value list - value is too short to Key/value custom field; Raise length limit from 60 to 255
- Category changed from Issues to Custom fields
The current, 60-char. limit is enforced by source:/trunk/app/models/custom_field_enumeration.rb@16970#L22.
Updated by Rene Sperling over 8 years ago
Mischa The Evil wrote:
The current, 60-char. limit is enforced by source:/trunk/app/models/custom_field_enumeration.rb@16970#L22.
Is there a chance, that this will change someday?
Updated by Jyrki Lilja 9 months ago
Mischa The Evil wrote in #note-1:
The current, 60-char. limit is enforced by source:/trunk/app/models/custom_field_enumeration.rb@16970#L22.
Is there a reason for the limit? As far as I can see the field in the db has `text` as type so it should be able to hold a value with unlimited length.
Updated by Go MAEDA 10 days ago
- File 27097-raise_key_value_list_name_limit.patch 27097-raise_key_value_list_name_limit.patch added
- Target version set to Candidate for next major release
The attached patch raises the maximum length of a key/value list value from 60 to 255 characters.
The current limit is inconsistent with the "List" format. Possible values of a List custom field have no length validation at all, so values longer than 60 characters can already be used there. Only the key/value list format restricts a value to 60 characters. As a result, users who want to switch from List to Key/value list cannot do so if any of their values exceeds that limit.
The 60-character limit is enforced only by a model validation. The custom_field_enumerations.name column is a string column that can already store 255 characters, so no migration is required.
Updated by Go MAEDA 10 days ago
- Has duplicate Defect #30440: Custom Key/value List restrained with text length added
Updated by Go MAEDA 3 days ago
- Subject changed from Key/value custom field; Raise length limit from 60 to 255 to Raise the maximum length of key/value list custom field values from 60 to 255 characters
- Status changed from New to Closed
- Assignee set to Go MAEDA
- Resolution set to Fixed
Committed the patch in r25153.