Skip to content

Commit

Permalink
fix: Fixed SolrPaginator getLastPage using an index starting at 1 i…
Browse files Browse the repository at this point in the history
…nstead of 0
  • Loading branch information
ambroisemaupate committed Mar 14, 2023
1 parent 35b79a6 commit 052f9be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/RoadizCoreBundle/src/Api/ListManager/SolrPaginator.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function count(): int
public function getLastPage(): float
{
$this->handleOnce();
$lastPage = $this->listManager->getPageCount() - 1;
$lastPage = $this->listManager->getPageCount();
return max($lastPage, 1);
}

Expand Down

0 comments on commit 052f9be

Please sign in to comment.