Explicitly specify PayloadRepresenter

pull/3125/head
Alexander Bach 10 years ago committed by Jens Ulferts
parent ce81b7f4f2
commit 8d26d6a52c
  1. 2
      lib/api/v3/work_packages/work_packages_shared_helpers.rb

@ -40,7 +40,7 @@ module API
# merges the given JSON representation into @work_package
def merge_json_into_work_package!(work_package, json)
payload = WorkPackagePayloadRepresenter.create(work_package)
payload = ::API::V3::WorkPackages::WorkPackagePayloadRepresenter.create(work_package)
payload.from_json(json)
end

Loading…
Cancel
Save