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-01-31 12:23:46 +08:00
committed by Aparup Banerjee
parent 05b6988a0a
commit 79d5769672
+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');