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

Move ProjectCustomField section validation to the object instead of the field.

Dombi Attila2ace8289ad69
diff --git a/app/models/project_custom_field.rb b/app/models/project_custom_field.rb
index d1aa6fe6077..bb3775efaa9 100644
--- a/app/models/project_custom_field.rb
+++ b/app/models/project_custom_field.rb
@@ -36,7 +36,7 @@ class ProjectCustomField < CustomField
after_save :activate_required_field_in_all_projects
- validates :custom_field_section_id, presence: true
+ validates :project_custom_field_section, presence: true
def type_name
:label_project_plural