Skip to content

Commit

Permalink
Remove useless parent_id merge in WorkPackages::CopyService
Browse files Browse the repository at this point in the history
It's already part of the writable attributes, so it's already there.
  • Loading branch information
cbliard committed Mar 22, 2024
1 parent e0fe75a commit 9e88bf9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/services/work_packages/copy_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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") &&
Expand Down

0 comments on commit 9e88bf9

Please sign in to comment.