mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: Fixed SearchContext::getQuery() to avoid use of deprecated limit() call signature.
This commit is contained in:
parent
37684837b8
commit
a34f7ccba4
@ -124,7 +124,9 @@ class SearchContext extends Object {
|
|||||||
$query = DataList::create($this->modelClass);
|
$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);
|
$query->sort($sort);
|
||||||
|
|
||||||
// hack to work with $searchParems when it's an Object
|
// hack to work with $searchParems when it's an Object
|
||||||
|
Loading…
Reference in New Issue
Block a user