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

Remove accidental comments

Dombi Attila96f7ab53eca6
diff --git a/app/services/projects/concerns/new_project_service.rb b/app/services/projects/concerns/new_project_service.rb
index 53b0a392c75..8de279e09a1 100644
--- a/app/services/projects/concerns/new_project_service.rb
+++ b/app/services/projects/concerns/new_project_service.rb
@@ -33,18 +33,12 @@ module Projects::Concerns
private
def before_perform(params, service_call)
- # we need to reset the query_available_custom_fields_on_global_level already after validation
- # as the update service just calls .valid? and returns if invalid
- # after_save is not touched in this case which causes the flag to stay active
super.tap do |super_call|
reject_section_scoped_validation(super_call.result)
end
end
def after_validate(params, service_call)
- # we need to reset the query_available_custom_fields_on_global_level already after validation
- # as the update service just calls .valid? and returns if invalid
- # after_save is not touched in this case which causes the flag to stay active
super.tap do |super_call|
build_missing_project_custom_field_project_mappings(super_call.result)
end