Actions
Bug #85585
closedFluid's widget.paginate view helper does not respect limit on last page
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2018-07-18
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
f:widget.paginate
always fetches $itemsPerPage
on the last page of a paginated query result.
If there are e.g. 30 total records and the query result is limited to to 21 ($query->setLimit(21);
in the repository) will produce 3 pages (using the default itemsPerPage = 10
setting).
Expected behavior: Page 3 only lists record 21
Current behavior: Page 3 lists record 21 to 30
TYPO3 8.7 https://github.com/TYPO3/TYPO3.CMS/blob/TYPO3_8-7/typo3/sysext/fluid/Classes/ViewHelpers/Widget/Controller/PaginateController.php#L100
TYPO3 9.x master https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/fluid/Classes/ViewHelpers/Widget/Controller/PaginateController.php#L100
Actions