|
|
@ -421,11 +421,7 @@ module OpenProject::Costs |
|
|
|
|
|
|
|
|
|
|
|
require 'api/v3/work_packages/work_package_representer' |
|
|
|
require 'api/v3/work_packages/work_package_representer' |
|
|
|
|
|
|
|
|
|
|
|
API::V3::WorkPackages::WorkPackageRepresenter.to_eager_load += [{ time_entries: [:project, |
|
|
|
API::V3::WorkPackages::WorkPackageRepresenter.to_eager_load += [:cost_object] |
|
|
|
:user] }, |
|
|
|
|
|
|
|
{ cost_entries: [:project, |
|
|
|
|
|
|
|
:user] }, |
|
|
|
|
|
|
|
:cost_object] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
API::V3::WorkPackages::WorkPackageCollectionRepresenter.prepend EagerLoadedCosts |
|
|
|
API::V3::WorkPackages::WorkPackageCollectionRepresenter.prepend EagerLoadedCosts |
|
|
|
end |
|
|
|
end |
|
|
|