MDL-59368 groups: Add behat for new group edit

This commit is contained in:
Damyon Wiese 2017-07-03 11:46:26 +08:00
parent 090d064dda
commit 76c493b3f2
7 changed files with 27 additions and 11 deletions

View file

@ -264,7 +264,7 @@ function groups_get_all_groups($courseid, $userid=0, $groupingid=0, $fields='g.*
}
if ($withmembers) {
$memberselect = 'ugm.id AS ugmid, ugm.userid, ';
$memberselect = $DB->sql_concat("COALESCE(ugm.userid, ugm.userid, 'NULL')", "':'", 'g.id') . ' AS ugmid, ugm.userid, ';
$memberjoin = ' LEFT JOIN {groups_members} ugm ON ugm.groupid = g.id ';
}