MDL-28522 Choice : View reports now correctly shows unanswered column - thanks to Marcus Boon for the patch
This commit is contained in:
committed by
Aparup Banerjee
parent
05b6988a0a
commit
79d5769672
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user