Issue Bug Closed

#70843Unexpected behaviour with FAL relations in flexforms using workspaces

Dominique Kreemers 10/19/15, 14:37 updated 06/17/25, 15:20

Description

Hi there,

if you are using Flexforms with FAL relations in Workspaces, there is an error if you switch to a workspace and try to modify an existing content element (with FAL relations in a flexform) from the live workspace.

Steps to reproduce this error:
  • install the “flexform_test” extension (attached to this ticket)
  • create a “Flexform Test” content element on any page and create a new image relation
  • switch to another workspace and open the content element from the previous step
  • save the content element

Now you will have the added image a second time (marked as a “New element!” / see screenshot).

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Files 2

History 4

  1. Online Now! GmbH commented <span data-processor="relativetime" data-value="2015-10-21T15:10:37+00:00" > 10/21/15, 15:10 </span>

    I can confirm this bug. It happens in one of our extensions for a customer. Also with the provided simple test extension in a clean TYPO3 6.2.15 installation.

    Searching and digging trough the code, i couldnt find a cause for this, yet. My guess its somewhere in the DataHandler Class. FAL relations defined in TCA are working as expected.

    When you have a FAL relation defined in TCA, exactly one copy of the reference with the label “Auto-created for WS #1” will be created. With a flexform FAL relation, there are two copies of the initial relation record. One with the label “INITIAL PLACEHOLDER”, the other one with a label “First draft version”. Both with a different sorting_foreign value. The recored with the “First draft version” label uses the ID of the placeholder in the t3ver_oid field.

    I hope someone can use this information and work on a fix.

  2. Christian Kuhn commented and changed status New Closed <span data-processor="relativetime" data-value="2025-06-17T15:20:11+00:00" > 06/17/25, 15:20 </span>

    Hey.

    We worked on flex form related workspace issues recently and i’m quite confident a relatively straight forward “attach an image to a flex form field in workspaces” scenario is working well meanwhile. I hope it is ok to close here, let’s create a fresh issue in case we still missed something.