From 4e6a5bec4aab2fa4d81c13c368ce2fea127d354d Mon Sep 17 00:00:00 2001 From: Samuel Young Date: Mon, 26 Jan 2026 13:50:17 +0000 Subject: [PATCH] CLDC-4151: Remove referral value check --- app/models/form/lettings/pages/referral_value_check.rb | 1 + .../form/lettings/subsections/household_situation.rb | 3 ++- .../locales/forms/2026/lettings/soft_validations.en.yml | 9 --------- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/app/models/form/lettings/pages/referral_value_check.rb b/app/models/form/lettings/pages/referral_value_check.rb index aa3a34200..265ba5312 100644 --- a/app/models/form/lettings/pages/referral_value_check.rb +++ b/app/models/form/lettings/pages/referral_value_check.rb @@ -1,3 +1,4 @@ +# removed in 2026 class Form::Lettings::Pages::ReferralValueCheck < ::Form::Page def initialize(id, hsh, subsection) super diff --git a/app/models/form/lettings/subsections/household_situation.rb b/app/models/form/lettings/subsections/household_situation.rb index 3f4133233..948ab7611 100644 --- a/app/models/form/lettings/subsections/household_situation.rb +++ b/app/models/form/lettings/subsections/household_situation.rb @@ -22,7 +22,6 @@ class Form::Lettings::Subsections::HouseholdSituation < ::Form::Subsection Form::Lettings::Pages::ReasonablePreferenceReason.new(nil, nil, self), Form::Lettings::Pages::AllocationSystem.new("allocation_system", nil, self), referral_questions, - Form::Lettings::Pages::ReferralValueCheck.new(nil, nil, self), ].flatten.compact end @@ -41,6 +40,7 @@ class Form::Lettings::Subsections::HouseholdSituation < ::Form::Subsection Form::Lettings::Pages::ReferralPrp.new(nil, nil, self), Form::Lettings::Pages::ReferralHsc.new(nil, nil, self), Form::Lettings::Pages::ReferralJustice.new(nil, nil, self), + Form::Lettings::Pages::ReferralValueCheck.new(nil, nil, self), ] else [ @@ -48,6 +48,7 @@ class Form::Lettings::Subsections::HouseholdSituation < ::Form::Subsection Form::Lettings::Pages::ReferralGeneralNeedsPrp.new(nil, nil, self), Form::Lettings::Pages::ReferralSupportedHousing.new(nil, nil, self), Form::Lettings::Pages::ReferralSupportedHousingPrp.new(nil, nil, self), + Form::Lettings::Pages::ReferralValueCheck.new(nil, nil, self), ] end end diff --git a/config/locales/forms/2026/lettings/soft_validations.en.yml b/config/locales/forms/2026/lettings/soft_validations.en.yml index 638bb4403..bc94dbcdf 100644 --- a/config/locales/forms/2026/lettings/soft_validations.en.yml +++ b/config/locales/forms/2026/lettings/soft_validations.en.yml @@ -57,15 +57,6 @@ en: title_text: "You told us that the tenant’s main reason for leaving their last settled home was %{reasonother}." informative_text: "The reason you have entered looks very similar to one of the existing response categories. Please check the categories and select the appropriate one. If the existing categories are not suitable, please confirm here to move onto the next question." - referral_value_check: - page_header: "" - check_answer_label: "Referral confirmation" - check_answer_prompt: "Confirm referral type" - hint_text: "" - question_text: "Are you sure?" - title_text: "Are you sure?" - informative_text: "This is a general needs log, and this referral type is for supported housing." - net_income_value_check: page_header: "" check_answer_label: "Net income confirmation"