From 4c71ea6c8264a9b22cbd0e265af0eb2d742ed1f3 Mon Sep 17 00:00:00 2001 From: Nikita Hovratov <nikita.h@live.de> Date: Wed, 8 Apr 2020 14:48:46 +0200 Subject: [PATCH] [DOCS] Fix wrong value in rst file of #89603 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The key should be 4 instead of 5 (index starts at 0). Resolves: #90982 Releases: master Change-Id: Iee33a74d8f569082aa495025892131acc0a392a7 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/64101 Tested-by: Björn Jacob <bjoern.jacob@tritum.de> Tested-by: TYPO3com <noreply@typo3.com> Tested-by: Christian Eßl <indy.essl@gmail.com> Reviewed-by: Björn Jacob <bjoern.jacob@tritum.de> Reviewed-by: Christian Eßl <indy.essl@gmail.com> --- .../10.2/Feature-89603-IntroduceNativePaginationForLists.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/typo3/sysext/core/Documentation/Changelog/10.2/Feature-89603-IntroduceNativePaginationForLists.rst b/typo3/sysext/core/Documentation/Changelog/10.2/Feature-89603-IntroduceNativePaginationForLists.rst index 1828ded9e292..2e7ca03e3192 100644 --- a/typo3/sysext/core/Documentation/Changelog/10.2/Feature-89603-IntroduceNativePaginationForLists.rst +++ b/typo3/sysext/core/Documentation/Changelog/10.2/Feature-89603-IntroduceNativePaginationForLists.rst @@ -44,7 +44,7 @@ Code-Example for the :php:`ArrayPaginator`: $paginator = new ArrayPaginator($itemsToBePaginated, $currentPageNumber, $itemsPerPage); $paginator->getNumberOfPages(); // returns 3 $paginator->getCurrentPageNumber(); // returns 3, basically just returns the input value - $paginator->getKeyOfFirstPaginatedItem(); // returns 5 - $paginator->getKeyOfLastPaginatedItem(); // returns 5 + $paginator->getKeyOfFirstPaginatedItem(); // returns 4 + $paginator->getKeyOfLastPaginatedItem(); // returns 4 .. index:: PHP-API, ext:core -- GitLab