From 3e0f9f046483c0da69e36077e190c511f5e3802a Mon Sep 17 00:00:00 2001 From: Tim Lock Date: Fri, 1 Nov 2013 15:24:03 +1030 Subject: [PATCH] Show Common groups always --- locallib.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/locallib.php b/locallib.php index f377c18..e836788 100644 --- a/locallib.php +++ b/locallib.php @@ -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); }