From 629c79cd4eb7def950cd69d0fc4681bd8d932f2a Mon Sep 17 00:00:00 2001 From: Ivan Kuchin Date: Fri, 30 Aug 2024 20:08:50 +0200 Subject: [PATCH] remove custom field class check for multi_value and allow_non_open_versions --- app/models/custom_field.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/models/custom_field.rb b/app/models/custom_field.rb index b7861808b015..19b625c91d7a 100644 --- a/app/models/custom_field.rb +++ b/app/models/custom_field.rb @@ -281,13 +281,11 @@ def boolean? end def multi_value_possible? - %w[version user list].include?(field_format) && - [ProjectCustomField, WorkPackageCustomField, TimeEntryCustomField, VersionCustomField].include?(self.class) + %w[version user list].include?(field_format) end def allow_non_open_versions_possible? - version? && - [ProjectCustomField, WorkPackageCustomField, TimeEntryCustomField, VersionCustomField].include?(self.class) + version? end ##