Skip to content

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

Fix scope attribute for custom_field

Oliver Günther413264ae7edf
diff --git a/app/models/custom_field.rb b/app/models/custom_field.rb
index aa86de98199..715c11a183b 100644
--- a/app/models/custom_field.rb
+++ b/app/models/custom_field.rb
@@ -41,7 +41,7 @@ class CustomField < ApplicationRecord
inverse_of: 'custom_field'
accepts_nested_attributes_for :custom_options
- acts_as_list scope: "type = '#{self.class}'"
+ acts_as_list scope: [:type]
validates :field_format, presence: true
validates :custom_options,