#110946Record history shows current MM relations instead of the change
Description
Reported by @jpmschuler via Slack.
What happens
Open the record history of a record with an MM relation field (e.g. page categories).
Every history entry shows the relations the record has right now. Old and new value are the same, so there is no diff.
Steps
- Save a page with category A.
- Save it again with categories A and B.
- Open the record history of that page.
Expected: old value “A”, new value “A, B”.
Actual: both entries show “A, B”.
Why
The DataHandler writes the correct old/new uid lists to sys_history.
The history module breaks it on display:
@ElementHistoryController::renderDiff()@ hands the record uid to BackendUtility::getProcessedValue(). For MM fields that starts the RelationHandler with the MM table and the uid, which reads the live MM rows and ignores the value from the history entry.
Before TYPO3 10 the uid was not passed and MM fields showed “N/A”.
Since #91148 (FlexForm preview in history) the uid is passed and the wrong value is shown.
Affects 13.4, 14, main.
Reviews 3
History 211
-
Gerrit Code Review pushed patch set 1 for main to change 96453 status
AcceptedUnder Review <span data-processor="relativetime" data-value="2026-10-07T07:54:33+00:00" > 10/07/26, 07:54 </span> -
Gerrit Code Review pushed patch set 1 for 14.3 to change 96508 <span data-processor="relativetime" data-value="2026-10-07T20:19:52+00:00" > 10/07/26, 20:19 </span>
-
Gerrit Code Review pushed patch set 2 for 14.3 to change 96508 <span data-processor="relativetime" data-value="2026-10-07T20:20:20+00:00" > 10/07/26, 20:20 </span>
-
Gerrit Code Review pushed patch set 3 for 14.3 to change 96508 <span data-processor="relativetime" data-value="2026-10-07T20:20:48+00:00" > 10/07/26, 20:20 </span>
-
Gerrit Code Review pushed patch set 4 for 14.3 to change 96508 <span data-processor="relativetime" data-value="2026-10-07T20:21:08+00:00" > 10/07/26, 20:21 </span>
-
Gerrit Code Review pushed patch set 1 for 13.4 to change 96510 <span data-processor="relativetime" data-value="2026-10-07T20:21:25+00:00" > 10/07/26, 20:21 </span>
-
Gerrit Code Review pushed patch set 2 for 13.4 to change 96510 <span data-processor="relativetime" data-value="2026-10-07T20:22:11+00:00" > 10/07/26, 20:22 </span>
-
Wolfgang Klinger commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-10-07T20:55:08+00:00" > 10/07/26, 20:55 </span> -
Gerrit Code Review pushed patch set 3 for 13.4 to change 96510 status
ResolvedUnder Review <span data-processor="relativetime" data-value="2026-10-07T21:22:16+00:00" > 10/07/26, 21:22 </span> -
Gerrit Code Review pushed patch set 4 for 13.4 to change 96510 <span data-processor="relativetime" data-value="2026-10-08T05:23:58+00:00" > 10/08/26, 05:23 </span>
-
Wolfgang Klinger commented and changed status
Under ReviewResolved <span data-processor="relativetime" data-value="2026-10-08T05:40:15+00:00" > 10/08/26, 05:40 </span>Applied in changeset commit:1152b5bea1be228b4073e3117cf3e01b54c9f045.
Applied in changeset commit:68b73a72e5a1d5d623a860a5e56533231c4fd716.