|
|
@ -65,9 +65,7 @@ class Form::Question |
|
|
|
|
|
|
|
|
|
|
|
def hidden_in_check_answers?(case_log) |
|
|
|
def hidden_in_check_answers?(case_log) |
|
|
|
if hidden_in_check_answers.is_a?(Hash) |
|
|
|
if hidden_in_check_answers.is_a?(Hash) |
|
|
|
hidden_in_check_answers["depends_on"].any? do |hsh| |
|
|
|
form.depends_on_met(hidden_in_check_answers["depends_on"], case_log) |
|
|
|
hsh.all? { |key, value| case_log[key] == value } |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
else |
|
|
|
else |
|
|
|
hidden_in_check_answers |
|
|
|
hidden_in_check_answers |
|
|
|
end |
|
|
|
end |
|
|
|