Permalink
Browse files

MDL-22257 - Change the fields value (3rd parameter) from 'id' to 'u.id'

  • Loading branch information...
rwijaya committed May 28, 2010
1 parent 3273731 commit f484c0ad081f19bbbac5873f1189bc52e01c55a3
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/quiz/report/responses/report.php
@@ -90,7 +90,7 @@ function display($quiz, $cm, $course) {
$displayoptions['qmfilter'] = $qmfilter;
//work out the sql for this table.
- if (!$students = get_users_by_capability($context, array('mod/quiz:reviewmyattempts', 'mod/quiz:attempt'),'id,1','','','','','',false)){
+ if (!$students = get_users_by_capability($context, array('mod/quiz:reviewmyattempts', 'mod/quiz:attempt'),'u.id,1','','','','','',false)){
$students = array();
} else {
$students = array_keys($students);
@@ -102,7 +102,7 @@ function display($quiz, $cm, $course) {
$groupstudents = array();
} else {
// all users who can attempt quizzes and who are in the currently selected group
- if (!$groupstudents = get_users_by_capability($context, array('mod/quiz:reviewmyattempts', 'mod/quiz:attempt'),'id,1','','','',$currentgroup,'',false)){
+ if (!$groupstudents = get_users_by_capability($context, array('mod/quiz:reviewmyattempts', 'mod/quiz:attempt'),'u.id,1','','','',$currentgroup,'',false)){
$groupstudents = array();
} else {
$groupstudents = array_keys($groupstudents);

0 comments on commit f484c0a

Please sign in to comment.