[BUGFIX] Correct handling of ObjectStorage objects in PaginateController 49/51849/2
authorNicole Cordes <typo3@cordes.co>
Mon, 30 Jan 2017 18:01:32 +0000 (19:01 +0100)
committerNicole Cordes <typo3@cordes.co>
Sat, 25 Feb 2017 10:58:15 +0000 (11:58 +0100)
commit1d976bb0ad07742c20a1e80168731ac63216206c
tree7d0d154b4cd96a8ed1d8533ecaf9f5f4bac42f80
parent79e692f19db68da61247dba492bd6639b17c4c85
[BUGFIX] Correct handling of ObjectStorage objects in PaginateController

The current implementation for getting paginated items from ObjectStorage
objects in TYPO3\CMS\Fluid\ViewHelpers\Widget\Controller\PaginateController
enforces null items if the count of objects is lower than the
itemsPerPage count. This patch calculates the correct count and returns
valid items only.

Resolves: #79559
Releases: master, 7.6
Change-Id: I5746d83120474d6246da949f67096459ed1076d7
Reviewed-on: https://review.typo3.org/51849
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
typo3/sysext/fluid/Classes/ViewHelpers/Widget/Controller/PaginateController.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Widget/Controller/PaginateControllerTest.php