From 41004e73f35140e5d3ed0007d139f3216c3827f8 Mon Sep 17 00:00:00 2001 From: oscar-richardson-softwire Date: Tue, 27 Jan 2026 17:10:02 +0000 Subject: [PATCH] Add error to location field --- app/models/validations/property_validations.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/validations/property_validations.rb b/app/models/validations/property_validations.rb index 55669bd5e..f8ce065b6 100644 --- a/app/models/validations/property_validations.rb +++ b/app/models/validations/property_validations.rb @@ -57,6 +57,7 @@ module Validations::PropertyValidations return unless location_postcode if postcode != location_postcode + record.errors.add :location_id, I18n.t("validations.lettings.property.location_id.postcode_does_not_match_scheme_location_postcode") record.errors.add :uprn, I18n.t("validations.lettings.property.uprn.postcode_does_not_match_scheme_location_postcode") record.errors.add :postcode_full, I18n.t("validations.lettings.property.postcode_full.does_not_match_scheme_location_postcode") end