mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 08:55:15 +02:00
MDL-43765 reports: Fixed addtional name warning
Fix the alternate name warning which is generated when course participation report is viewed
This commit is contained in:
parent
b34f6f5f5c
commit
ed44f0aa62
@ -251,8 +251,8 @@ if (!empty($instanceid) && !empty($roleid)) {
|
||||
$groupsql = "JOIN {groups_members} gm ON (gm.userid = u.id AND gm.groupid = :groupid)";
|
||||
$params['groupid'] = $currentgroup;
|
||||
}
|
||||
|
||||
$sql = "SELECT ra.userid, u.firstname, u.lastname, u.idnumber, l.actioncount AS count
|
||||
$usernamefields = get_all_user_name_fields(true, 'u');
|
||||
$sql = "SELECT ra.userid, $usernamefields, u.idnumber, l.actioncount AS count
|
||||
FROM (SELECT * FROM {role_assignments} WHERE contextid $relatedctxsql AND roleid = :roleid ) ra
|
||||
JOIN {user} u ON u.id = ra.userid
|
||||
$groupsql
|
||||
|
Loading…
x
Reference in New Issue
Block a user