diff --git a/lib/open_project/costs/engine.rb b/lib/open_project/costs/engine.rb index fceddf1217..f7d62cfc74 100644 --- a/lib/open_project/costs/engine.rb +++ b/lib/open_project/costs/engine.rb @@ -421,11 +421,7 @@ module OpenProject::Costs require 'api/v3/work_packages/work_package_representer' - API::V3::WorkPackages::WorkPackageRepresenter.to_eager_load += [{ time_entries: [:project, - :user] }, - { cost_entries: [:project, - :user] }, - :cost_object] + API::V3::WorkPackages::WorkPackageRepresenter.to_eager_load += [:cost_object] API::V3::WorkPackages::WorkPackageCollectionRepresenter.prepend EagerLoadedCosts end