From aca16d0766c912d9a2f2ad7af5f349477a7b3fc0 Mon Sep 17 00:00:00 2001 From: Samuel Young Date: Thu, 31 Jul 2025 09:56:57 +0100 Subject: [PATCH] CLDC-4046: Remove forcing on Q84 based on Q76 answer --- app/models/validations/household_validations.rb | 4 ---- config/locales/validations/lettings/household.en.yml | 4 ---- 2 files changed, 8 deletions(-) diff --git a/app/models/validations/household_validations.rb b/app/models/validations/household_validations.rb index ce913531b..5fb1e0966 100644 --- a/app/models/validations/household_validations.rb +++ b/app/models/validations/household_validations.rb @@ -31,10 +31,6 @@ module Validations::HouseholdValidations validate_other_field(record, 20, :reason, :reasonother) if record.is_reason_permanently_decanted? - if record.referral_type.present? && !record.is_from_prp_only_housing_register_or_waiting_list? - record.errors.add :referral_type, I18n.t("validations.lettings.household.referral_type.leaving_last_settled_home.reason_permanently_decanted") - end - if record.referral.present? && !record.is_internal_transfer? record.errors.add :referral, I18n.t("validations.lettings.household.referral.leaving_last_settled_home.reason_permanently_decanted") record.errors.add :reason, I18n.t("validations.lettings.household.reason.leaving_last_settled_home.not_internal_transfer") diff --git a/config/locales/validations/lettings/household.en.yml b/config/locales/validations/lettings/household.en.yml index 0040e1374..84319bee9 100644 --- a/config/locales/validations/lettings/household.en.yml +++ b/config/locales/validations/lettings/household.en.yml @@ -106,7 +106,3 @@ en: reason_permanently_decanted: "Answer must be internal transfer as the tenant was permanently decanted from another property owned by this landlord." la_general_needs: internal_transfer: "Answer cannot be internal transfer as it’s the same landlord on the tenancy agreement and the household had either a fixed-term or lifetime local authority general needs tenancy immediately before this letting." - - referral_type: - leaving_last_settled_home: - reason_permanently_decanted: "Answer must be from a PRP-only housing register or waiting list (no local authority involvement) as the tenant was permanently decanted from another property owned by this landlord."