Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

BUGFIX: Fixed SearchContext::getQuery() to avoid use of deprecated li…

…mit() call signature.
  • Loading branch information...
commit a34f7ccba4a3189dcef5454c2ff5236ba290dfb2 1 parent 3768483
Sam Minnée sminnee authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 search/SearchContext.php
4 search/SearchContext.php
View
@@ -124,7 +124,9 @@ public function getQuery($searchParams, $sort = false, $limit = false, $existing
$query = DataList::create($this->modelClass);
}
- $query->limit($limit);
+ if(is_array($limit)) $query->limit(isset($limit['limit']) ? $limit['limit'] : null, isset($limit['start']) ? $limit['start'] : null);
+ else $query->limit($limit);
+
$query->sort($sort);
// hack to work with $searchParems when it's an Object
Please sign in to comment.
Something went wrong with that request. Please try again.