Permalink
Browse files

Fixed Issue with DOAP Filter when passing filterAny array

  • Loading branch information...
1 parent b87b233 commit f7c09167d3cb4aad384974bed500b8f7fe1cd23d @arambalakjian committed Mar 17, 2014
Showing with 8 additions and 4 deletions.
  1. +8 −4 code/Pages/DataObjectAsPageHolder.php
@@ -39,14 +39,18 @@ public function FetchItems($itemClass, $filter = null, $sort = Null, $limit = Nu
{
if(is_array($filter))
{
- foreach($filter as $type => $value)
+ foreach($filter as $key => $value)
{
- $results = $results->$type($value);
+ if($key == "filterany" || $key == "filter")
+ {
+ $results = $results->$key($value);
+ }
+
}
- }
+ }
else
{
- $results = $results->filter($filter);
+ $results = $results->filter($filter);
}
}

0 comments on commit f7c0916

Please sign in to comment.