From f3cac4a97c97eb39a2af181ce91e296c72715e42 Mon Sep 17 00:00:00 2001 From: Tristan Marly Date: Fri, 15 Apr 2022 14:10:03 +0200 Subject: [PATCH] Fix pagination pb when page_size different than 10 --- src/Search/Response.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Search/Response.php b/src/Search/Response.php index df030207..365d27c6 100644 --- a/src/Search/Response.php +++ b/src/Search/Response.php @@ -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;