You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the pager filter I noticed I get to many pages: 20 instead of only 6 available. When I look into the code the last page is being calculated with this formula:
$end = $begin + $this->maxPages - 2;
This formula can never be correct as the maxPages variable has little to do with the $end when $this->numPages is lower then maxPages.
When using the pager filter I noticed I get to many pages: 20 instead of only 6 available. When I look into the code the last page is being calculated with this formula:
$end = $begin + $this->maxPages - 2;
This formula can never be correct as the
maxPages
variable has little to do with the$end
when$this->numPages
is lower thenmaxPages
.By viewing the code it seems that the author also realized this, since a whole block of code that deals with this problem is written but commented out: https://github.com/ongr-io/FilterManagerBundle/blob/master/Filter/ViewData/PagerAwareViewData.php#L187
The text was updated successfully, but these errors were encountered: