|
|
|
@ -3,7 +3,7 @@ module Validations::LocalAuthorityValidations |
|
|
|
postcode = record.ppostcode_full |
|
|
|
postcode = record.ppostcode_full |
|
|
|
if record.previous_postcode_known? && (postcode.blank? || !postcode.match(POSTCODE_REGEXP)) |
|
|
|
if record.previous_postcode_known? && (postcode.blank? || !postcode.match(POSTCODE_REGEXP)) |
|
|
|
record.errors.add :ppostcode_full, I18n.t("validations.postcode") |
|
|
|
record.errors.add :ppostcode_full, I18n.t("validations.postcode") |
|
|
|
record.errors.add :ppcodenk, I18n.t("validations.postcode") |
|
|
|
record.errors.add :ppostcodenk, I18n.t("validations.postcode") |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|