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

proper representer initialization to ensure cf inclusion

ulferts8a48a58eb8cc
diff --git a/lib/api/v3/attachments/attachment_representer.rb b/lib/api/v3/attachments/attachment_representer.rb
index 48c76209801..30ff72d6f09 100644
--- a/lib/api/v3/attachments/attachment_representer.rb
+++ b/lib/api/v3/attachments/attachment_representer.rb
@@ -53,7 +53,7 @@ module API
next unless embed_links && container_representer
container_representer
- .new(represented.container, current_user: current_user)
+ .create(represented.container, current_user: current_user)
end
end