[BUGFIX] Wrong numbers in BE paginage widget
authorThomas Löffler <loeffler@spooner-web.de>
Thu, 7 Feb 2013 20:41:01 +0000 (21:41 +0100)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Thu, 7 Feb 2013 21:16:37 +0000 (22:16 +0100)
On a page with 10 records it counts 1 - 11.
Now it counts right (1 - 10).
Easy review in EM when searching for an ext
in TER, e.g. "news"

Releases: 6.0, 6.1
Resolves: #45259
Change-Id: I11b40841c40dbbf40f36bb12775e8495995ee76a
Reviewed-on: https://review.typo3.org/18096
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
typo3/sysext/fluid/Classes/ViewHelpers/Be/Widget/Controller/PaginateController.php

index f7f4f08..721253b 100644 (file)
@@ -102,7 +102,7 @@ class PaginateController extends \TYPO3\CMS\Fluid\Core\Widget\AbstractWidgetCont
         * @return array
         */
        protected function buildPagination() {
-               $endRecord = $this->offset + $this->itemsPerPage + 1;
+               $endRecord = $this->offset + $this->itemsPerPage;
                if ($endRecord > $this->numberOfObjects) {
                        $endRecord = $this->numberOfObjects;
                }