MDL-22257 - Change the fields value (3rd parameter) from 'id' to 'u.id'
This commit is contained in:
@@ -90,7 +90,7 @@ class quiz_responses_report extends quiz_default_report {
|
||||
$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 @@ class quiz_responses_report extends quiz_default_report {
|
||||
$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);
|
||||
|
||||
Reference in New Issue
Block a user