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

Update the Projects::CopyService to execute the after_perform super first

Dombi Attilad839f8339b07
diff --git a/app/services/projects/copy_service.rb b/app/services/projects/copy_service.rb
index cbd8098ae8e..9983adeb566 100644
--- a/app/services/projects/copy_service.rb
+++ b/app/services/projects/copy_service.rb
@@ -93,9 +93,9 @@ module Projects
end
def after_perform(call)
- copy_activated_custom_fields(call)
-
- super
+ super.tap do |super_call|
+ copy_activated_custom_fields(super_call)
+ end
end
def copy_activated_custom_fields(call)