OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
remove custom field class check for multi_value and allow_non_open_versions
Ivan Kuchin72bff94745e7
diff --git a/app/models/custom_field.rb b/app/models/custom_field.rbindex b7861808b01..19b625c91d7 100644--- a/app/models/custom_field.rb+++ b/app/models/custom_field.rb@@ -281,13 +281,11 @@ class CustomField < ApplicationRecordenddef multi_value_possible?- %w[version user list].include?(field_format) &&- [ProjectCustomField, WorkPackageCustomField, TimeEntryCustomField, VersionCustomField].include?(self.class)+ %w[version user list].include?(field_format)enddef allow_non_open_versions_possible?- version? &&- [ProjectCustomField, WorkPackageCustomField, TimeEntryCustomField, VersionCustomField].include?(self.class)+ version?end##