MDL-42238 - Groups: Alternate name sql update to groups_get_potential_members().

This commit is contained in:
Adrian Greeve 2013-10-10 14:05:53 +08:00
parent 6d3d9bd927
commit 60f55a2f72

View File

@ -739,7 +739,8 @@ function groups_get_potential_members($courseid, $roleid = null, $cohortid = nul
$cohortjoin = "";
}
$sql = "SELECT u.id, u.username, u.firstname, u.lastname, u.idnumber
$allusernamefields = get_all_user_name_fields(true, 'u');
$sql = "SELECT u.id, u.username, $allusernamefields, u.idnumber
FROM {user} u
JOIN ($esql) e ON e.id = u.id
$cohortjoin