|
|
|
@ -575,7 +575,7 @@ private |
|
|
|
organisations_fields = %i[field_67 field_68 field_69 field_70] |
|
|
|
organisations_fields = %i[field_67 field_68 field_69 field_70] |
|
|
|
if organisations_fields.all? { |field| attributes[field.to_s].blank? } |
|
|
|
if organisations_fields.all? { |field| attributes[field.to_s].blank? } |
|
|
|
organisations_fields.each do |field| |
|
|
|
organisations_fields.each do |field| |
|
|
|
errors.add(field, "At least one option must be selected of these four") |
|
|
|
errors.add(field, "At least one option must be selected of these four", category: :not_answered) |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|