Skip to content

Commit

Permalink
Ensure download field is not multiple
Browse files Browse the repository at this point in the history
This ensures that the field doesn't get passed in as an array (which validates as present).
  • Loading branch information
thomasleese authored Mar 5, 2024
1 parent 66f97d1 commit e85f7cb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</article>

<%= f.govuk_check_boxes_fieldset :downloaded, multiple: false, small: true, legend: nil do %>
<%= f.govuk_check_box :downloaded, true, false, link_errors: true, label: { text: "I have downloaded the consent document." } %>
<%= f.govuk_check_box :downloaded, true, false, link_errors: true, multiple: false, label: { text: "I have downloaded the consent document." } %>
<% end %>

<%= render "shared/save_submit_buttons", f: %>
Expand Down

0 comments on commit e85f7cb

Please sign in to comment.