Permalink
Browse files

MDL-28522 Choice : View reports now correctly shows unanswered column…

… - thanks to Marcus Boon for the patch
  • Loading branch information...
danmarsden authored and nebgor committed Jan 25, 2012
1 parent 05b6988 commit 79d5769672ea2ce42b3e7ccfd47708154aa201c5
Showing with 5 additions and 0 deletions.
  1. +5 −0 mod/choice/report.php
View
@@ -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');

0 comments on commit 79d5769

Please sign in to comment.