|
|
@ -520,7 +520,7 @@ private |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def validate_only_one_housing_needs_type |
|
|
|
def validate_only_one_housing_needs_type |
|
|
|
if [field_55, field_56, field_57].compact.count.positive? |
|
|
|
if [field_55, field_56, field_57].compact.count > 1 |
|
|
|
errors.add(:field_55, I18n.t("validations.household.housingneeds_type.only_one_option_permitted")) |
|
|
|
errors.add(:field_55, I18n.t("validations.household.housingneeds_type.only_one_option_permitted")) |
|
|
|
errors.add(:field_56, I18n.t("validations.household.housingneeds_type.only_one_option_permitted")) |
|
|
|
errors.add(:field_56, I18n.t("validations.household.housingneeds_type.only_one_option_permitted")) |
|
|
|
errors.add(:field_57, I18n.t("validations.household.housingneeds_type.only_one_option_permitted")) |
|
|
|
errors.add(:field_57, I18n.t("validations.household.housingneeds_type.only_one_option_permitted")) |
|
|
|