Browse Source

Update check_answers_helper.rb

pull/832/head
Ted-U 3 years ago committed by GitHub
parent
commit
0602c09289
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      app/helpers/check_answers_helper.rb

4
app/helpers/check_answers_helper.rb

@ -41,4 +41,8 @@ private
def total_applicable_questions(subsection, case_log, current_user) def total_applicable_questions(subsection, case_log, current_user)
subsection.applicable_questions(case_log).reject { |q| q.hidden_in_check_answers?(case_log, current_user) } subsection.applicable_questions(case_log).reject { |q| q.hidden_in_check_answers?(case_log, current_user) }
end end
def get_answer_label(question, case_log)
question.answer_label(case_log).presence || "<span class=\"app-!-colour-muted\">You didn’t answer this question</span>".html_safe
end
end end

Loading…
Cancel
Save