@ -347,7 +347,7 @@ module OpenProject::Costs
end
initializer 'costs.register_query_filter' do
Queries::WorkPackages::FilterRegister.register(OpenProject::Costs::WorkPackageFilter)
Queries::Register.filter Query, OpenProject::Costs::WorkPackageFilter
module EagerLoadedCosts
@ -88,8 +88,6 @@ module OpenProject::Costs::Patches::QueryPatch
labor_costs + material_costs
}))
Queries::WorkPackages::Filter.add_filter_type_by_field('cost_object_id', 'list_optional')
@ -18,7 +18,7 @@
#++
module OpenProject::Costs
class WorkPackageFilter < Queries::WorkPackages::Filter::BaseFilter
class WorkPackageFilter < ::Queries::BaseFilter
def values
CostObject
.where(project_id: project)