|
|
|
@ -173,7 +173,6 @@ class Form::Question
|
|
|
|
|
type == "radio" && RADIO_REFUSED_VALUE[id.to_sym]&.include?(value) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def display_label |
|
|
|
|
check_answer_label || header || id.humanize |
|
|
|
|
end |
|
|
|
@ -202,12 +201,6 @@ class Form::Question
|
|
|
|
|
label |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
def unanswered_error_message |
|
|
|
|
return I18n.t("validations.declaration.missing") if id == "declaration" |
|
|
|
|
|
|
|
|
|
I18n.t("validations.not_answered", question: display_label.downcase) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
private |
|
|
|
|
|
|
|
|
|
def selected_answer_option_is_derived?(case_log) |
|
|
|
|