#111433Workspace preview shows file references of a moved record twice
Description
When a content element with a file reference is moved to another page in a workspace, the frontend preview of that workspace renders the file twice. Live renders it once, and after publishing the file is rendered once.
Tested with TYPO3 14.3.11, PHP 8.4, MySQL 8.4.
Steps to reproduce: 1. Live workspace: page A contains a content element of type "textmedia" with one image. 2. Switch to a custom workspace. 3. Move the content element to page B (DataHandler command "move" via the backend route ajax/record/process). 4. Open the frontend preview of page B in the workspace.
Expected result:
The image is rendered once.
Actual result:
The image is rendered twice. The same element on page A in the live workspace renders the image once.
Moving the record creates a move pointer (t3ver_state = 4) for the sys_file_reference as well. In the frontend, FileRepository::findByRelation() returns both the live reference and its move pointer, because the WorkspaceRestriction keeps live records and move pointers.
Related issues: #37065, #99442
Reviews 2
History 25
-
Gerrit Code Review pushed patch set 1 for main to change 97632 status
NewUnder Review <span data-processor="relativetime" data-value="2026-11-13T20:00:07+00:00" > 11/13/26, 20:00 </span> -
Gerrit Code Review pushed patch set 1 for 14.3 to change 97637 <span data-processor="relativetime" data-value="2026-11-14T07:53:44+00:00" > 11/14/26, 07:53 </span>
-
Georg Ringer commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-11-14T08:00:16+00:00" > 11/14/26, 08:00 </span> -
Gerrit Code Review pushed patch set 2 for 14.3 to change 97637 status
ResolvedUnder Review <span data-processor="relativetime" data-value="2026-11-14T11:42:49+00:00" > 11/14/26, 11:42 </span> -
Georg Ringer commented and changed status
Under ReviewResolved <span data-processor="relativetime" data-value="2026-11-14T12:00:12+00:00" > 11/14/26, 12:00 </span>Applied in changeset commit:4a304c1ef5f5aeb8e42ba702dc53668bcd370b4c.
Applied in changeset commit:c6792a860d2f728b18819c7ebe7eed05b3c9e3d5.