From 90d7524a9b2556f7e2f684e9f6f89ded997921ed Mon Sep 17 00:00:00 2001 From: baarkerlounger Date: Tue, 16 Nov 2021 11:06:46 +0000 Subject: [PATCH] Page validations need to match form page names --- app/validations/household_validations.rb | 2 +- config/forms/2021_2022.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/validations/household_validations.rb b/app/validations/household_validations.rb index d3536ae8a..bb04599c7 100644 --- a/app/validations/household_validations.rb +++ b/app/validations/household_validations.rb @@ -45,7 +45,7 @@ module HouseholdValidations end end - def validate_household_pregnancy(record) + def validate_pregnancy(record) if (record.preg_occ == "Yes" || record.preg_occ == "Prefer not to say") && !women_of_child_bearing_age_in_household(record) record.errors.add :preg_occ, "You must answer no as there are no female tenants aged 16-50 in the property" end diff --git a/config/forms/2021_2022.json b/config/forms/2021_2022.json index 7433f4d7b..c8c0abec5 100644 --- a/config/forms/2021_2022.json +++ b/config/forms/2021_2022.json @@ -196,7 +196,7 @@ } } }, - "age1": { + "person_1_age": { "header": "", "description": "", "questions": { @@ -294,7 +294,7 @@ } } }, - "tenant_economic_status": { + "person_1_economic": { "header": "", "description": "", "questions": {