From b0ea71ddbbf79af1dab6553c748d9e572eb6a7c3 Mon Sep 17 00:00:00 2001 From: Barry Oosthuizen Date: Mon, 18 May 2015 09:55:46 +1200 Subject: [PATCH] Better fix for Fix #72 Conflicts: locallib.php --- locallib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/locallib.php b/locallib.php index 3e2e29c..08e95e9 100644 --- a/locallib.php +++ b/locallib.php @@ -707,8 +707,9 @@ class attendance { } else { $where = "attendanceid = :aid AND sessdate >= :csdate"; } + if ($this->pageparams->get_current_sesstype() > att_page_with_filter_controls::SESSTYPE_ALL) { - $where .= " AND groupid=:cgroup"; + $where .= " AND (groupid = :cgroup OR groupid = 0)"; } $params = array( 'aid' => $this->id,