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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
provide correct errors object for notification
ulfertseacac06c969e
diff --git a/app/models/project/copy.rb b/app/models/project/copy.rbindex 22a62a264a6..0541754629d 100644--- a/app/models/project/copy.rb+++ b/app/models/project/copy.rb@@ -320,16 +320,18 @@ module Project::Copyenddef copy_work_package(source_work_package, parent_id, user_cf_ids)+ overrides = copy_work_package_attribute_overrides(source_work_package, parent_id, user_cf_ids)+service_call = WorkPackages::CopyService.new(user: User.current,work_package: source_work_package,contract_class: WorkPackages::CopyProjectContract)- .call(copy_work_package_attribute_overrides(source_work_package, parent_id, user_cf_ids))+ .call(overrides)if service_call.success?service_call.resultelsif logger&.info- log_work_package_copy_error(source_work_package, errors)+ log_work_package_copy_error(source_work_package, service_call.errors)endend