Issue Bug Closed

#109577Record list: workspace overlay applied after record resolution breaks workspace icons / row state

Kurt Dirnbauer 04/14/26, 12:32 updated 04/21/26, 11:30

Description

Problem

short: user in staging workspace and changes page-type and title. Icon and title in page-tree are correct, but icon and title NOT OK in Records-View workspace (old list-view)

In the backend list module (DatabaseRecordList), each row is built from a Record created via createResolvedRecordFromDatabaseRow(). Today, BackendUtility::workspaceOL() is called after that record is created and after isRowListingConditionFulfilled() runs on it.

The overlay therefore runs on the raw DB row for accumulation/rendering logic, but the resolved record (and anything derived from it early in the pipeline, e.g. icon / workspace-related presentation) is still based on the non-overlaid row.

Symptom: In a workspace context, list rows can show incorrect workspace icons or other row metadata that should reflect the overlaid workspace state.

Expected behavior
Workspace overlay should be applied to the row before building the resolved Record, so icon-relevant and other resolved properties match the active workspace, consistent with the rest of the listing pipeline.

Technical cause
Order of operations in typo3/sysext/backend/Classes/RecordList/DatabaseRecordList.php:

1. createResolvedRecordFromDatabaseRow() + isRowListingConditionFulfilled() on raw data
2. then workspaceOL()

The fix is to call workspaceOL() first, skip if the row is removed (!is_array($rowData)), then create the record and run isRowListingConditionFulfilled().

The same ordering issue exists for language/translation rows ($lRow): overlay first, then language access check, then create the translation record and filter with isRowListingConditionFulfilled().

Suggested patch (summary) – from claude(!).

Main rows: workspaceOL → guard → createResolvedRecordFromDatabaseRow → isRowListingConditionFulfilled → accumulate / manual sorting.
Translation rows: workspaceOL → language access → create record → isRowListingConditionFulfilled → render.
(Attach or link your diff: patches/typo3-cms-backend-fix-recordlist-workspace-icons.patch when you push to Gerrit.)

Reproduction steps
1. Use a non-live workspace with records that have a workspace-specific version (or placeholder behavior your site uses).
2. Open the List module for a table where workspace state affects the row (e.g. icons).
3. Actual: Icons / row state do not match workspace overlay expectations.
4. Expected: Icons / row state match the overlaid record.

Environment
TYPO3: (your version, e.g. latest 14.3.0-dev)
Workspaces enabled, user in staging (a simple) Workspace

Reviews 1

Files 1

History 23

  1. Georg Ringer commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-04-17T06:15:09+00:00" > 04/17/26, 06:15 </span>

    Applied in changeset commit:d0af413f9c80f34ad95ff7aca2a12420b4d2e132.