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

accept array for select parameter

ulferts0a879ed9a984
diff --git a/lib/api/v3/utilities/endpoints/sql_index.rb b/lib/api/v3/utilities/endpoints/sql_index.rb
index 1b42524d67c..0486c47e9b3 100644
--- a/lib/api/v3/utilities/endpoints/sql_index.rb
+++ b/lib/api/v3/utilities/endpoints/sql_index.rb
@@ -64,8 +64,10 @@ module API
return unless key_params
key_params
+ .delete_prefix('[')
+ .delete_suffix(']')
.split(',')
- .map { |path| nested_hash(path.split('/')) }
+ .map { |path| nested_hash(path.strip.tr("\"'", '').split('/')) }
.inject({}) { |hash, nested| hash.deep_merge(nested) }
end