mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
BUGIFX: Use limit() instead of deprecated getRange() in AssetAdmin.
This commit is contained in:
parent
439b9c1f29
commit
4c7f3e0836
@ -553,7 +553,7 @@ JS
|
|||||||
|
|
||||||
// If a search is in progress, don't show the path
|
// If a search is in progress, don't show the path
|
||||||
if($this->request->requestVar('q')) {
|
if($this->request->requestVar('q')) {
|
||||||
$items = $items->getRange(0, 1);
|
$items = $items->limit(1);
|
||||||
$items->push(new ArrayData(array(
|
$items->push(new ArrayData(array(
|
||||||
'Title' => _t('LeftAndMain.SearchResults', 'Search Results'),
|
'Title' => _t('LeftAndMain.SearchResults', 'Search Results'),
|
||||||
'Link' => Controller::join_links($this->Link(), '?' . http_build_query(array('q' => $this->request->requestVar('q'))))
|
'Link' => Controller::join_links($this->Link(), '?' . http_build_query(array('q' => $this->request->requestVar('q'))))
|
||||||
|
Loading…
Reference in New Issue
Block a user