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

don't handle ordering of multi value custom fields with formats string, date, bool, link

Ivan Kuchinf2d4d996ffd4
diff --git a/app/models/custom_field/order_statements.rb b/app/models/custom_field/order_statements.rb
index 035a22a1b8f..c4be1d1fc81 100644
--- a/app/models/custom_field/order_statements.rb
+++ b/app/models/custom_field/order_statements.rb
@@ -39,11 +39,7 @@ module CustomField::OrderStatements
[select_custom_option_position]
end
when "string", "date", "bool", "link"
- if multi_value?
- [select_custom_values_as_group]
- else
- [coalesce_select_custom_value_as_string]
- end
+ [coalesce_select_custom_value_as_string]
when "int", "float"
# Make the database cast values into numeric
# Postgresql will raise an error if a value can not be casted!