Browse Source

Merge pull request #95 from barrysspace/session_filtering_MDL27

Fix #72 (back ported from master)
MOODLE_27_STABLE
Dan Marsden 10 years ago
parent
commit
47878ec7df
  1. 3
      locallib.php

3
locallib.php

@ -707,8 +707,9 @@ class attendance {
} else { } else {
$where = "attendanceid = :aid AND sessdate >= :csdate"; $where = "attendanceid = :aid AND sessdate >= :csdate";
} }
if ($this->pageparams->get_current_sesstype() > att_page_with_filter_controls::SESSTYPE_ALL) { 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( $params = array(
'aid' => $this->id, 'aid' => $this->id,

Loading…
Cancel
Save