From 2aeeeb808081b35851231d3667b0715ee18eb38a Mon Sep 17 00:00:00 2001 From: natdeanlewissoftwire Date: Tue, 1 Nov 2022 14:03:26 +0000 Subject: [PATCH] feat: add error messages on scheme_id and location_id as well as la page --- app/models/validations/financial_validations.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/models/validations/financial_validations.rb b/app/models/validations/financial_validations.rb index cb25439c8..203a9b1dc 100644 --- a/app/models/validations/financial_validations.rb +++ b/app/models/validations/financial_validations.rb @@ -193,6 +193,8 @@ private record.errors.add :beds, I18n.t("validations.financial.brent.beds.below_hard_min") record.errors.add :la, I18n.t("validations.financial.brent.la.below_hard_min") record.errors.add :postcode_known, I18n.t("validations.financial.brent.postcode_known.below_hard_min") + record.errors.add :scheme_id, I18n.t("validations.financial.brent.scheme_id.below_hard_min") + record.errors.add :location_id, I18n.t("validations.financial.brent.location_id.below_hard_min") record.errors.add :rent_type, I18n.t("validations.financial.brent.rent_type.below_hard_min") record.errors.add :needstype, I18n.t("validations.financial.brent.needstype.below_hard_min") record.errors.add :period, I18n.t("validations.financial.brent.period.below_hard_min") @@ -201,6 +203,8 @@ private record.errors.add :beds, I18n.t("validations.financial.brent.beds.above_hard_max") record.errors.add :la, I18n.t("validations.financial.brent.la.above_hard_max") record.errors.add :postcode_known, I18n.t("validations.financial.brent.postcode_known.above_hard_max") + record.errors.add :scheme_id, I18n.t("validations.financial.brent.scheme_id.above_hard_max") + record.errors.add :location_id, I18n.t("validations.financial.brent.location_id.above_hard_max") record.errors.add :rent_type, I18n.t("validations.financial.brent.rent_type.above_hard_max") record.errors.add :needstype, I18n.t("validations.financial.brent.needstype.above_hard_max") record.errors.add :period, I18n.t("validations.financial.brent.period.above_hard_max")