Better fix for Fix #72
authorBarry Oosthuizen <barry.oosthuizen@nottingham.ac.uk>
Sun, 17 May 2015 21:55:46 +0000 (09:55 +1200)
committerBarry Oosthuizen <barry.oosthuizen@nottingham.ac.uk>
Tue, 26 May 2015 15:59:04 +0000 (16:59 +0100)
Conflicts:
locallib.php

locallib.php

index 3e2e29c..08e95e9 100644 (file)
@@ -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,