We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1948ab4 commit d443479Copy full SHA for d443479
app/forms/projects/wizard/custom_fields_form.rb
@@ -33,6 +33,11 @@ class CustomFieldsForm < ApplicationForm
33
include ::CustomFields::CustomFieldRendering
34
35
form do |custom_fields_form|
36
+ # This placeholder is relevant in cases where no custom fields are rendered at all or all
37
+ # custom fields rendered are disabled. Without it, the form might be completely empty and
38
+ # the controller would complain about a missing parameter namespace expected by the ActionController::Parameters.
39
+ custom_fields_form.hidden(name: "_placeholder", value: "")
40
+
41
render_custom_fields(form: custom_fields_form)
42
end
43
0 commit comments