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

use parameter to determine notification creation

ulfertsd4d0202872ab
diff --git a/app/services/projects/copy/work_packages_dependent_service.rb b/app/services/projects/copy/work_packages_dependent_service.rb
index d1693611ddc..4764dd3bd0a 100644
--- a/app/services/projects/copy/work_packages_dependent_service.rb
+++ b/app/services/projects/copy/work_packages_dependent_service.rb
@@ -139,9 +139,8 @@ module Projects::Copy
# We don't support copying budgets right now
budget_id: nil,
- # We fetch the value from the global registry to persist it in the job which
- # will trigger a delayed job for potentially sending the journal notifications.
- send_notifications: ActionMailer::Base.perform_deliveries
+ # We persist the setting in the job which will trigger a delayed job for potentially sending the journal notifications.
+ send_notifications: params[:send_notifications]
}
end