diff --git a/app/models/custom_field.rb b/app/models/custom_field.rb index 271731e19e5..938d33be498 100644 --- a/app/models/custom_field.rb +++ b/app/models/custom_field.rb @@ -351,7 +351,7 @@ class CustomField < ApplicationRecord end def can_have_comment? - is_a?(ProjectCustomField) && field_format.in?(%w[bool date float int list user version]) + is_a?(ProjectCustomField) end ## diff --git a/lib/open_project/custom_field_format_dependent.rb b/lib/open_project/custom_field_format_dependent.rb index d48cc4dd230..6b29c3da5bd 100644 --- a/lib/open_project/custom_field_format_dependent.rb +++ b/lib/open_project/custom_field_format_dependent.rb @@ -35,7 +35,6 @@ module OpenProject defaultText: [:except, %w[list bool date text user version hierarchy calculated_value]], enterpriseBanner: [:only, %w[hierarchy]], formula: [:only, %w[calculated_value]], - hasComment: [:only, %w[bool date float int list user version]], length: [:except, %w[list bool date user version link hierarchy calculated_value]], multiSelect: [:only, %w[list user version hierarchy]], possibleValues: [:only, %w[list]],