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

Adding a string to an sql literal implicitly is no longer possible, calling to_s

Dombi Attila87abc1ed0cf3
diff --git a/app/models/query/results/group_by.rb b/app/models/query/results/group_by.rb
index 686cfa1fe80..db73d333321 100644
--- a/app/models/query/results/group_by.rb
+++ b/app/models/query/results/group_by.rb
@@ -163,7 +163,7 @@ module ::Query::Results::GroupBy
column = case_insensitive_condition(sortable, column, columns_hash)
if order
- column + " #{order} "
+ column.to_s + " #{order} "
else
column
end