MDL-61365 group: Fix default filter when group mode is visible

This commit is contained in:
Sara Arjona
2018-02-07 18:10:34 +01:00
parent b08db1daa2
commit aba9cc490d
+1 -2
View File
@@ -178,9 +178,8 @@ foreach ($filtersapplied as $filter) {
break;
}
}
// If course supports groups we may need to set a default.
if ($groupid !== false) {
if (!empty($groupid)) {
if ($canaccessallgroups) {
// User can access all groups, let them filter by whatever was selected.
$filtersapplied[] = USER_FILTER_GROUP . ':' . $groupid;