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

Pass represented as paramter

Henriette Dinger0ae3184f5c81
diff --git a/lib/api/v3/projects/project_representer.rb b/lib/api/v3/projects/project_representer.rb
index 2ed4ce9ee12..b3f8f6e6649 100644
--- a/lib/api/v3/projects/project_representer.rb
+++ b/lib/api/v3/projects/project_representer.rb
@@ -181,7 +181,7 @@ module API
represented.status.code.to_s.tr('_', ' ')
},
- setter: ->(fragment:, **) {
+ setter: ->(fragment:,represented:, **) {
represented.status ||= {}
represented.status[:code] = if fragment.nil?
nil