Skip to content

Commit

Permalink
BUGFIX: getStandardEvents() not respecting filter
Browse files Browse the repository at this point in the history
  • Loading branch information
unclecheese committed Oct 30, 2012
1 parent a0fd3f3 commit eeaf856
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/Calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,10 @@ protected function getStandardEvents($start, $end, $filter = null) {
");
$list = $list->filter(array($relation => $ids));
$list = $list->innerJoin($event_class, "$relation = \"{$event_class}\".ID");
$list = $list->innerJoin("SiteTree", "\"SiteTree\".ID = \"{$event_class}\".ID");
if($filter) {
$list = $list->where($filter);
}
return $list;
}

Expand Down

0 comments on commit eeaf856

Please sign in to comment.