Project

General

Profile

Defect #27543 » 27543-remove-inherited-limitation-with-test.patch

Takenori TAKAKI, 2024-02-05 05:24

View differences:

lib/redmine/field_format.rb
829 829
    end
830 830

  
831 831
    class EnumerationFormat < RecordList
832
      self.customized_class_names = nil
833

  
832 834
      add 'enumeration'
833 835
      self.form_partial = 'custom_fields/formats/enumeration'
834 836

  
test/unit/lib/redmine/field_format/enumeration_format_test.rb
100 100
    assert_equal [@foo.id], @field.value_from_keyword('foo, baz', nil)
101 101
    assert_equal [], @field.value_from_keyword('baz', nil)
102 102
  end
103

  
104
  def test_customized_class_names_should_overrided_to_nil
105
    assert_nil Redmine::FieldFormat::EnumerationFormat.customized_class_names
106
  end
103 107
end
(1-1/2)