|
|
|
@ -455,10 +455,14 @@ private |
|
|
|
fields = field_mapping_for_errors[question_id.to_sym] || [] |
|
|
|
fields = field_mapping_for_errors[question_id.to_sym] || [] |
|
|
|
|
|
|
|
|
|
|
|
fields.each do |field| |
|
|
|
fields.each do |field| |
|
|
|
|
|
|
|
if setup_question?(question) |
|
|
|
|
|
|
|
errors.add(field, I18n.t("validations.invalid_option", question: QUESTIONS[field]), category: :setup) |
|
|
|
|
|
|
|
else |
|
|
|
errors.add(field, I18n.t("validations.invalid_option", question: QUESTIONS[field])) |
|
|
|
errors.add(field, I18n.t("validations.invalid_option", question: QUESTIONS[field])) |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def validate_created_by_exists |
|
|
|
def validate_created_by_exists |
|
|
|
return if field_112.blank? |
|
|
|
return if field_112.blank? |
|
|
|
|