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

fixed naming

Jonas Jabari3902dfbae0be
diff --git a/app/models/projects/acts_as_customizable_patches.rb b/app/models/projects/acts_as_customizable_patches.rb
index ae58a3aa8a3..b95a2f0bebf 100644
--- a/app/models/projects/acts_as_customizable_patches.rb
+++ b/app/models/projects/acts_as_customizable_patches.rb
@@ -40,7 +40,7 @@ module Projects::ActsAsCustomizablePatches
has_many :project_custom_fields, through: :project_custom_field_project_mappings, class_name: 'ProjectCustomField'
before_save :build_missing_project_custom_field_project_mappings
- after_save :reset_section_scope
+ after_save :reset_section_scoped_validation
before_create :reject_section_scoped_validation_for_creation
after_create :disable_custom_fields_with_empty_values
@@ -57,7 +57,7 @@ module Projects::ActsAsCustomizablePatches
project_custom_field_project_mappings.build(mappings)
end
- def reset_section_scope
+ def reset_section_scoped_validation
# reset the section scope after saving
# in order not to silently carry this setting in this instance
self._limit_custom_fields_validation_to_section_id = nil