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

This commit is contained in:
Sara Arjona
2018-02-07 18:02:56 +01:00
parent a409707794
commit 58af736dec
+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;