Defect #27543

Key/value-pair custom field type not available to all customisable contents

Added by Felix Schäfer almost 5 years ago. Updated almost 5 years ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:


Category:Custom fields
Target version:Candidate for next major release
Resolution: Affected version:


The key/value-pair custom field type is currently limited to the same customisable contents as User and Version custom fields. For the key/value-pair custom field type this limitation is not necessary as the key/value-pairs are not project dependant.

The following patch removes the limitation inherited from the RecordList in the EnumerationFormat.

--- a/lib/redmine/field_format.rb
+++ b/lib/redmine/field_format.rb
@@ -723,6 +723,8 @@ module Redmine

     class EnumerationFormat < RecordList
+      self.customized_class_names = nil
       add 'enumeration'
       self.form_partial = 'custom_fields/formats/enumeration'

Another possibility would be to move the limitation from the parent class RecordList to the child classes that need it (UserFormat, VersionFormat), but that would mean that other existing subclasses (e.g. from plugins) would need to be updated if they rely on this limitation.


#1 Updated by Go MAEDA almost 5 years ago

  • Category set to Custom fields
  • Target version set to Candidate for next major release

Also available in: Atom PDF