Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

set project on cost query

ulfertse834dff26edf
diff --git a/modules/reporting_engine/lib/report/controller.rb b/modules/reporting_engine/lib/report/controller.rb
index fb0eb6789cd..8b66bad99b0 100644
--- a/modules/reporting_engine/lib/report/controller.rb
+++ b/modules/reporting_engine/lib/report/controller.rb
@@ -264,7 +264,7 @@ module Report::Controller
##
# Build the query from the passed session hash
def build_query(filters, groups = {})
- query = report_engine.new
+ query = report_engine.new project: @project
query.tap do |q|
filters[:operators].each do |filter, operator|
unless filters[:values][filter] == ['<<inactive>>']