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

User Shares::CreateService instead of Members::CreateService

Dombi Attilaccc8e2782b44
diff --git a/app/services/work_packages/copy_service.rb b/app/services/work_packages/copy_service.rb
index c96018523bf..3088a5c5e93 100644
--- a/app/services/work_packages/copy_service.rb
+++ b/app/services/work_packages/copy_service.rb
@@ -133,7 +133,7 @@ class WorkPackages::CopyService
entity: target,
send_notifications:)
- Members::CreateService
+ Shares::CreateService
.new(user: User.current, contract_class: EmptyContract)
.call(attributes)
end