mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
user/index: More consistent handling of groups column - MDL-12311
This commit is contained in:
parent
1377ede75d
commit
a32e05df9a
@ -306,11 +306,13 @@
|
||||
if ($showenroldata) {
|
||||
$tablecolumns[] = 'roles';
|
||||
$tableheaders[] = get_string('roles');
|
||||
$tablecolumns[] = 'groups';
|
||||
$tableheaders[] = get_string('groups');
|
||||
if (!empty($CFG->enablegroupings)) {
|
||||
$tablecolumns[] = 'groupings';
|
||||
$tableheaders[] = get_string('groupings', 'group');
|
||||
if ($groupmode != 0) {
|
||||
$tablecolumns[] = 'groups';
|
||||
$tableheaders[] = get_string('groups');
|
||||
if (!empty($CFG->enablegroupings)) {
|
||||
$tablecolumns[] = 'groupings';
|
||||
$tableheaders[] = get_string('groupings', 'group');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -706,14 +708,13 @@
|
||||
}
|
||||
}
|
||||
$data[] = $rastring;
|
||||
if ($course->groupmode != 0) {
|
||||
if ($groupmode != 0) {
|
||||
// htmlescape with s() and implode the array
|
||||
$data[] = implode(', ', array_map('s',$userlist_extra[$user->id]['group']));
|
||||
if (!empty($CFG->enablegroupings)) {
|
||||
$data[] = implode(', ', array_map('s', $userlist_extra[$user->id]['gping']));
|
||||
}
|
||||
}
|
||||
if (!empty($CFG->enablegroupings)) {
|
||||
$data[] = implode(', ', array_map('s', $userlist_extra[$user->id]['gping']));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if ($bulkoperations) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user