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
no need to explicitly define accessors for multi_value? and allow_non_open_versions? of CustomField
Ivan Kuchind89f3bd0551e
diff --git a/app/models/custom_field.rb b/app/models/custom_field.rbindex e8ba5ecaa3c..98e32171b93 100644--- a/app/models/custom_field.rb+++ b/app/models/custom_field.rb@@ -277,19 +277,11 @@ class CustomField < ApplicationRecordfield_format == "bool"end- def multi_value?- multi_value- end-def multi_value_possible?%w[version user list].include?(field_format) &&[ProjectCustomField, WorkPackageCustomField, TimeEntryCustomField, VersionCustomField].include?(self.class)end- def allow_non_open_versions?- allow_non_open_versions- end-def allow_non_open_versions_possible?version? &&[ProjectCustomField, WorkPackageCustomField, TimeEntryCustomField, VersionCustomField].include?(self.class)