diff --git a/app/models/concerns/has_custom_fields.rb b/app/models/concerns/has_custom_fields.rb index 1b592733528..9faabc758f0 100644 --- a/app/models/concerns/has_custom_fields.rb +++ b/app/models/concerns/has_custom_fields.rb @@ -18,10 +18,6 @@ module HasCustomFields def self.get_custom_field_type(types, key) return unless types - sorted_types = types.keys.select { |k| k.end_with?("*") }.sort_by(&:length).reverse - - sorted_types.each { |t| return types[t] if key =~ /\A#{t}/i } - types[key] end