Issue Bug Closed

#106308Workspace module: pagebrowser is not working

Tina Westner 03/05/25, 09:40 updated 12/02/25, 14:22

Description

In Workspace-backend-module the pagebrowser does not work.

How to reproduce:
  • Have a page with more that 30 records in workspace
  • Use the pagebrowser in backend-module
  • Clicked page is shown with blue background color in pagebrowser, so everything worked fine on first glance
  • ! The record-list still shows records from first page. It is not possible to show records from page > 1.

A short dig into code:
Method “calculateStartWithCollections” is used to calculate the starting point. In this method $this->dataArray is used as an array with numeric keys. But it does not have numeric keys, there are keys like “TABLENAME:UID”, so calculation of starting point ends up with 0 and the very first records are shown in every case.

Solution: Perhaps it’s enough to move the switching to numerous-keys BEFORE the call of calculateStartWithCollections
https://github.com/TYPO3/typo3/blob/main/typo3/sysext/workspaces/Classes/Service/GridDataService.php#L300

Reproduced in LTS12 and ELTS10, but code is same in later versions. So probably the bug exists in later versions too.

Reviews 3