Skip to content

Commit

Permalink
Merge pull request #125 from tmarly/Fix_pagination
Browse files Browse the repository at this point in the history
Fix pagination pb when page_size different than 10
  • Loading branch information
maximehuran authored Jun 7, 2022
2 parents 46d2aab + f3cac4a commit 519749a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Search/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ public function getPaginator(): Pagerfanta
{
if (null === $this->paginator) {
$this->paginator = new Pagerfanta($this->adapter);
$this->paginator->setCurrentPage($this->requestConfiguration->getPage());
$this->paginator->setMaxPerPage($this->requestConfiguration->getLimit());
$this->paginator->setCurrentPage($this->requestConfiguration->getPage());
}

return $this->paginator;
Expand Down

0 comments on commit 519749a

Please sign in to comment.