diff --git a/src/PaginatedList.php b/src/PaginatedList.php index 41cbfed..9af899e 100644 --- a/src/PaginatedList.php +++ b/src/PaginatedList.php @@ -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 *