Skip to content

Commit

Permalink
fix: better result list api
Browse files Browse the repository at this point in the history
  • Loading branch information
wilr committed Feb 7, 2024
1 parent d98032f commit f0b9020
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/PaginatedList.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@
*/
class PaginatedList extends \SilverStripe\ORM\PaginatedList
{
protected $list;

public function __construct(ResultList $list, $request = [])
{
$this->setRequest($request);
$this->list = $list;
}


/**
* Use the ResultList's total items method to determine this value
*
Expand Down

0 comments on commit f0b9020

Please sign in to comment.