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