From 9e88bf962fe54c456b9a2a9d9c95e5345c87c2c9 Mon Sep 17 00:00:00 2001 From: Christophe Bliard Date: Fri, 22 Mar 2024 10:53:31 +0100 Subject: [PATCH] Remove useless parent_id merge in WorkPackages::CopyService It's already part of the writable attributes, so it's already there. --- app/services/work_packages/copy_service.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/services/work_packages/copy_service.rb b/app/services/work_packages/copy_service.rb index 7234c33591e6..8fb079cc19cb 100644 --- a/app/services/work_packages/copy_service.rb +++ b/app/services/work_packages/copy_service.rb @@ -77,8 +77,7 @@ def copied_attributes(work_package, override) attributes = work_package .attributes .slice(*writable_work_package_attributes(work_package)) - .merge("parent_id" => work_package.parent_id, - "custom_field_values" => work_package.custom_value_attributes) + .merge("custom_field_values" => work_package.custom_value_attributes) .merge(overwritten_attributes) if overwritten_attributes.has_key?("start_date") &&