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

`Query::Results`: adding missing joins in the context of historic queries

Sebastian Fiedlschuster0a9867ce8219
diff --git a/app/models/query/results.rb b/app/models/query/results.rb
index b1835dc4824..8d10910b8ef 100644
--- a/app/models/query/results.rb
+++ b/app/models/query/results.rb
@@ -93,6 +93,7 @@ class ::Query::Results
.where(query.statement)
.includes(all_includes)
.joins(all_joins)
+ .references(:projects)
end
def work_package_scope