From d0db2d4db1589c72f31aab02d96ae3f87d23dd3a Mon Sep 17 00:00:00 2001 From: Nat Dean-Lewis Date: Tue, 24 Feb 2026 11:33:11 +0000 Subject: [PATCH] CLDC-4241: fix brent hard max error type inconsistency --- app/models/validations/financial_validations.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/validations/financial_validations.rb b/app/models/validations/financial_validations.rb index 6f135aa39..3dd6890be 100644 --- a/app/models/validations/financial_validations.rb +++ b/app/models/validations/financial_validations.rb @@ -228,7 +228,7 @@ private end if record.weekly_value(record["brent"]) > rent_range.hard_max - record.errors.add :brent, :over_hard_max, message: I18n.t("validations.lettings.financial.brent.above_hard_max") + record.errors.add :brent, :above_hard_max, message: I18n.t("validations.lettings.financial.brent.above_hard_max") record.errors.add :beds, I18n.t("validations.lettings.financial.beds.rent_above_hard_max") record.errors.add :uprn, I18n.t("validations.lettings.financial.uprn.rent_above_hard_max") record.errors.add :la, I18n.t("validations.lettings.financial.la.rent_above_hard_max")