From 79d5769672ea2ce42b3e7ccfd47708154aa201c5 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Wed, 25 Jan 2012 20:03:11 +1300 Subject: [PATCH] MDL-28522 Choice : View reports now correctly shows unanswered column - thanks to Marcus Boon for the patch --- mod/choice/report.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mod/choice/report.php b/mod/choice/report.php index bbd673b0010..17e2924c354 100644 --- a/mod/choice/report.php +++ b/mod/choice/report.php @@ -215,6 +215,11 @@ } exit; } + // Show those who haven't answered the question. + if (!empty($choice->showunanswered)) { + $choice->option[0] = get_string('notanswered', 'choice'); + $choice->maxanswers[0] = 0; + } $results = prepare_choice_show_results($choice, $course, $cm, $users); $renderer = $PAGE->get_renderer('mod_choice');