Show Common groups always
authorTim Lock <tim.lock@netspot.com.au>
Fri, 1 Nov 2013 04:54:03 +0000 (15:24 +1030)
committerTim Lock <tim.lock@netspot.com.au>
Fri, 1 Nov 2013 04:54:03 +0000 (15:24 +1030)
locallib.php

index f377c18..e836788 100644 (file)
@@ -329,9 +329,8 @@ class att_page_with_filter_controls {
             if ($groupmode == VISIBLEGROUPS or has_capability('moodle/site:accessallgroups', $PAGE->context)) {
                 $this->sessgroupslist[self::SESSTYPE_ALL] = get_string('all', 'attendance');
             }
-            if ($groupmode == VISIBLEGROUPS) {
-                $this->sessgroupslist[self::SESSTYPE_COMMON] = get_string('commonsessions', 'attendance');
-            }
+            // Show Common groups always
+            $this->sessgroupslist[self::SESSTYPE_COMMON] = get_string('commonsessions', 'attendance');
             foreach ($allowedgroups as $group) {
                 $this->sessgroupslist[$group->id] = format_string($group->name);
             }