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

Use flat array for schema representer cache key.

dombeszc6719f006e86
diff --git a/lib/api/v3/projects/schemas/project_schema_representer.rb b/lib/api/v3/projects/schemas/project_schema_representer.rb
index b9e412d592c..9f1ea0e230b 100644
--- a/lib/api/v3/projects/schemas/project_schema_representer.rb
+++ b/lib/api/v3/projects/schemas/project_schema_representer.rb
@@ -152,9 +152,7 @@ module API
section.id,
I18n.locale,
represented.model,
- represented.model.available_custom_fields.sort_by(&:id)]
- .flatten
- .compact
+ *represented.model.available_custom_fields.sort_by(&:id)]
end
end
end