Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

… - thanks to Marcus Boon for the patch
  • Loading branch information...
commit 51f53e70331feabd06c31172b9b375c1fcf1e5d7 1 parent 435b4d8
Dan Marsden danmarsden authored wdjunaidi committed
Showing with 5 additions and 0 deletions.
  1. +5 −0 mod/choice/report.php
5 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');
Please sign in to comment.
Something went wrong with that request. Please try again.