MDL-28522 Choice : View reports now correctly shows unanswered column - thanks to Marcus Boon for the patch

This commit is contained in:
Dan Marsden
2012-02-01 11:24:54 +08:00
committed by Aparup Banerjee
parent e691a270a9
commit 03a6727b6c
+5
View File
@@ -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');