mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-42238 - Groups: Alternate name sql update to groups_get_potential_members().
This commit is contained in:
parent
6d3d9bd927
commit
60f55a2f72
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user