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

Files 1

History 510

  1. Gerrit Code Review pushed patch set 1 for main to change 88530 status Accepted Under Review <span data-processor="relativetime" data-value="2025-03-07T13:45:29+00:00" > 03/07/25, 13:45 </span>

  2. Anonymous commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-03-10T10:40:09+00:00" > 03/10/25, 10:40 </span>

    Applied in changeset commit:f77759a6cfb2717ece2f8be08c23f15ab69246f8.