From 70bd78d8105a73408ef4492d71a8960c41e85c29 Mon Sep 17 00:00:00 2001 From: Richard Lynch Date: Thu, 12 Dec 2024 16:41:39 +0000 Subject: [PATCH] Fix dfe sign in bypass form Seems like the rails 8 upgrade broke this form used on review apps, this commit fixes the field names so nested parameters are sent to the controller as expected. --- .../claims/_dfe_sign_in_bypass_form.html.erb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/views/further_education_payments/provider/claims/_dfe_sign_in_bypass_form.html.erb b/app/views/further_education_payments/provider/claims/_dfe_sign_in_bypass_form.html.erb index ed78973f5d..32abf12fb1 100644 --- a/app/views/further_education_payments/provider/claims/_dfe_sign_in_bypass_form.html.erb +++ b/app/views/further_education_payments/provider/claims/_dfe_sign_in_bypass_form.html.erb @@ -18,19 +18,19 @@ ) do |f| %>
<%= f.govuk_text_field( - "[extra][raw_info][organisation][ukprn]", + "extra[raw_info][organisation][ukprn]", label: { text: "UKPRN" }, value: journey_session.answers.claim.school.ukprn ) %> <%= f.govuk_text_field( - "[extra][raw_info][organisation][id]", + "extra[raw_info][organisation][id]", label: { text: "Organisation id" }, value: "12345678" ) %> <%= f.govuk_text_field( - "[extra][raw_info][organisation][name]", + "extra[raw_info][organisation][name]", label: { text: "Organisation id" }, value: "Springfield Elementary School" ) %> @@ -42,25 +42,25 @@ ) %> <%= f.govuk_text_field( - "[info][first_name]", + "info[first_name]", label: { text: "First name" }, value: "Seymoure" ) %> <%= f.govuk_text_field( - "[info][last_name]", + "info[last_name]", label: { text: "Last name" }, value: "Skinner" ) %> <%= f.govuk_text_field( - "[info][email]", + "info[email]", label: { text: "Email" }, value: "seymoure.skinner@springfield-elementary.edu" ) %> <%= f.govuk_text_field( - "[roles][0]", + "roles[0]", label: { text: "Role 1" }, value: Journeys::FurtherEducationPayments::Provider::CLAIM_VERIFIER_DFE_SIGN_IN_ROLE_CODE ) %>