mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
allow comments for all field formats
https://community.openproject.org/projects/stadt-koeln/work_packages/64264/activity#comment-1607511
This commit is contained in:
@@ -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
|
||||
|
||||
##
|
||||
|
||||
@@ -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]],
|
||||
|
||||
Reference in New Issue
Block a user