|
|
@ -28,7 +28,6 @@ module CheckAnswersHelper |
|
|
|
def filter_conditional_questions(questions, case_log) |
|
|
|
def filter_conditional_questions(questions, case_log) |
|
|
|
applicable_questions = questions |
|
|
|
applicable_questions = questions |
|
|
|
|
|
|
|
|
|
|
|
# puts applicable_questions.count |
|
|
|
|
|
|
|
questions.each do |k, question| |
|
|
|
questions.each do |k, question| |
|
|
|
question.fetch("conditional_for", []).each do |conditional_question_key, condition| |
|
|
|
question.fetch("conditional_for", []).each do |conditional_question_key, condition| |
|
|
|
if condition_not_met(case_log, k, question, condition) |
|
|
|
if condition_not_met(case_log, k, question, condition) |
|
|
|