Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added option for 'where' in filter builder

  • Loading branch information...
commit 70ce723636374e922e8cf32402ac67deb208dff5 1 parent b32c947
@arambalakjian authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 code/Pages/DataObjectAsPageHolder.php
View
5 code/Pages/DataObjectAsPageHolder.php
@@ -41,13 +41,12 @@ public function FetchItems($itemClass, $filter = null, $sort = Null, $limit = Nu
{
foreach($filter as $key => $value)
{
- if($key == "filterany" || $key == "filter")
+ if($key == "filterany" || $key == "filter" || $key == "where")
{
$results = $results->$key($value);
}
-
}
- }
+ }
else
{
$results = $results->filter($filter);
Please sign in to comment.
Something went wrong with that request. Please try again.