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

avoid unsafe sql warning

ulfertsc2311df6f585
diff --git a/app/models/query/group_by.rb b/app/models/query/group_by.rb
index bb900ebbd7e..de8b27c8da9 100644
--- a/app/models/query/group_by.rb
+++ b/app/models/query/group_by.rb
@@ -55,7 +55,7 @@ module ::Query::Grouping
.references(:statuses, :projects)
.where(query.statement)
.order(order_for_count)
- .pluck(pluck_for_count)
+ .pluck(*pluck_for_count)
.to_h
end