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

don't add field_format hidden field in saved custom field form

Ivan Kuchinec114cd2bbec
diff --git a/app/views/custom_fields/_form.html.erb b/app/views/custom_fields/_form.html.erb
index f963327730d..bd0decbd1a5 100644
--- a/app/views/custom_fields/_form.html.erb
+++ b/app/views/custom_fields/_form.html.erb
@@ -33,7 +33,7 @@ See COPYRIGHT and LICENSE files for more details.
class="form--section"
id="custom_field_form">
- <%= f.hidden_field :field_format %>
+ <%= f.hidden_field :field_format if @custom_field.new_record? %>
<div class="form--field -required" id="custom_field_name_attributes">
<%= f.text_field :name,