[BUGFIX] Prevent double pointer parameter in record list 54/58954/2
authorVladimir Falcon Piva <vladimirfalcon@gmail.com>
Mon, 26 Nov 2018 14:59:06 +0000 (15:59 +0100)
committerJan Helke <typo3@helke.de>
Fri, 7 Dec 2018 16:28:47 +0000 (17:28 +0100)
This fix makes sure that the pointer parameter is added just once into
the record list pagination urls

Resolves: #87007
Releases: master, 8.7
Change-Id: I6db00dd0af0d09277aa9a005e561330acb386809
Reviewed-on: https://review.typo3.org/58954
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Mona Muzaffar <mona.muzaffar@gmx.de>
Tested-by: Mona Muzaffar <mona.muzaffar@gmx.de>
Reviewed-by: Jan Helke <typo3@helke.de>
Tested-by: Jan Helke <typo3@helke.de>
typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php

index d318bba..c17583b 100644 (file)
@@ -1832,7 +1832,7 @@ class DatabaseRecordList
             return '';
         }
         $content = '';
-        $listURL = $this->listURL('', $this->table);
+        $listURL = $this->listURL('', $this->table, 'firstElementNumber');
         // 1 = first page
         // 0 = first element
         $currentPage = floor($this->firstElementNumber / $this->iLimit) + 1;