Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a409707
)
MDL-61365 group: Fix default filter when group mode is visible
author
Sara Arjona
<sara@moodle.com>
Wed, 7 Feb 2018 17:02:56 +0000
(18:02 +0100)
committer
Sara Arjona
<sara@moodle.com>
Wed, 7 Feb 2018 17:02:56 +0000
(18:02 +0100)
user/index.php
patch
|
blob
|
blame
|
history
diff --git
a/user/index.php
b/user/index.php
index
aed9016
..
993d511
100644
(file)
--- a/
user/index.php
+++ b/
user/index.php
@@
-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;