Skip to content

Commit

Permalink
remove custom field class check for multi_value and allow_non_open_ve…
Browse files Browse the repository at this point in the history
…rsions
  • Loading branch information
toy committed Sep 10, 2024
1 parent 45f1fd1 commit 629c79c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/models/custom_field.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

##
Expand Down

0 comments on commit 629c79c

Please sign in to comment.