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

Fix Project permitted params

Alexander Brandon Colescf3e62fa4c9f
diff --git a/app/models/permitted_params.rb b/app/models/permitted_params.rb
index e4a3ec9e0eb..74ee619063b 100644
--- a/app/models/permitted_params.rb
+++ b/app/models/permitted_params.rb
@@ -276,14 +276,15 @@ class PermittedParams
:project_type_id,
:parent_id,
:templated,
- status: %i(code explanation),
+ :status_code,
+ :status_explanation,
custom_fields: [],
work_package_custom_field_ids: [],
type_ids: [],
enabled_module_names: [])
- if whitelist[:status] && whitelist[:status][:code] && whitelist[:status][:code].blank?
- whitelist[:status][:code] = nil
+ if whitelist.has_key?(:status_code) && whitelist[:status_code].blank?
+ whitelist[:status_code] = nil
end
whitelist.merge(custom_field_values(:project))