[BUGFIX] Correct handling of ObjectStorage objects in PaginateController 75/51475/3
authorNicole Cordes <typo3@cordes.co>
Mon, 30 Jan 2017 18:01:32 +0000 (19:01 +0100)
committerHelmut Hummel <typo3@helhum.io>
Sat, 25 Feb 2017 10:24:04 +0000 (11:24 +0100)
commit3b3f6296ee75e30a2282a6334fd1b5a66cf49b3c
treed512ad66da1ed742e1042eafe1c9f765288077ad
parentd487b7083ae25519a126af4cc0a68874c5161c0c
[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/51475
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Jasmina Ließmann <code@frauliessmann.de>
Tested-by: Jasmina Ließmann <code@frauliessmann.de>
Reviewed-by: Christian Matthes
Tested-by: Christian Matthes
Reviewed-by: Joerg Boesche <typo3@joergboesche.de>
Reviewed-by: Helmut Hummel <typo3@helhum.io>
Tested-by: Helmut Hummel <typo3@helhum.io>
typo3/sysext/fluid/Classes/ViewHelpers/Widget/Controller/PaginateController.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Widget/Controller/PaginateControllerTest.php