From e85f7cb6fa2a63fcfd7a192c4a55cf68970bc4e9 Mon Sep 17 00:00:00 2001 From: Thomas Leese Date: Tue, 5 Mar 2024 15:35:05 +0000 Subject: [PATCH] Ensure download field is not multiple This ensures that the field doesn't get passed in as an array (which validates as present). --- .../teacher_interface/consent_requests/edit_download.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/teacher_interface/consent_requests/edit_download.html.erb b/app/views/teacher_interface/consent_requests/edit_download.html.erb index 87dda315c2..fe488aa68e 100644 --- a/app/views/teacher_interface/consent_requests/edit_download.html.erb +++ b/app/views/teacher_interface/consent_requests/edit_download.html.erb @@ -16,7 +16,7 @@ <%= 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: %>