Issue Bug Under Review

#110962List module shows empty MM relation columns (e.g. categories) for records modified in a workspace

Boris Stiner 10/08/26, 10:44 updated 11/16/26, 07:55

Description

When a live record is modified in a workspace and an MM relation (e.g. `categories` of type category, or any `select`/`group` field with `MM`) is changed there, the List module shows the column empty (or with the live relations) in that workspace, although the record’s edit form shows the relations correctly.

## Steps to reproduce

1. Create a record with a `categories` field (e.g. a page/tt_content/news record) in LIVE without any categories and publish it.
2. Switch to a workspace and edit the record: assign a category and save.
3. Open the List module in the workspace and show the `categories` column (field selection / “Show columns”).

Expected: the column shows the category assigned in the workspace (as the edit form does).
**Actual:** the column is empty.

Records that are new in the workspace are displayed correctly; only modified (overlaid) live records are affected.

## Cause

In `DatabaseRecordList::renderListRow()` the processed value is fetched with

```php
BackendUtility::getProcessedValueExtra($table, $fCol, $row[$fCol], 100, $row[‘uid’], true, $pageId, $row);
```

After the workspace overlay, `$row[‘uid’]` is the uid of the live record, while the MM rows of the changed relation are stored with the uid of the workspace version (`$row[‘_ORIG_uid’]`). `getProcessedValueExtra()` → `getProcessedValue()` resolves MM relations via the passed uid, so it reads the live relations.

## Proposed fix

Pass the uid of the workspace version if there is one:

```php
$recordUid = $row[‘_ORIG_uid’] ?? $row[‘uid’];
```

(on main: `$record->getComputedProperties()->getVersionedUid() ?? $record->getUid()`).

A patch will follow on Gerrit.

## Related

The same “live uid vs. versioned MM relations” issue exists in Extbase: `$query->contains(‘categories’, X)` is turned into `uid IN (SELECT uid_foreign FROM sys_category_record_mm …)`, evaluated against the live uid, so in workspace previews category changes of modified records are not found (e.g. EXT:news category lists). That is a separate, larger topic and not part of this issue.

Found on TYPO3 13.4.35, PHP 8.3; code is the same on main.

Reviews 1

History 07