Skip to content

Commit

Permalink
MDL-28522 Choice : View reports now correctly shows unanswered column…
Browse files Browse the repository at this point in the history
… - thanks to Marcus Boon for the patch
  • Loading branch information
danmarsden authored and Aparup Banerjee committed Jan 31, 2012
1 parent 3d257cb commit 7759183
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mod/choice/report.php
Expand Up @@ -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');
Expand Down

0 comments on commit 7759183

Please sign in to comment.