Bug #70843

Unexpected behaviour with FAL relations in flexforms using workspaces

Added by Dominique Kreemers almost 4 years ago. Updated over 3 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
DataHandler aka TCEmain
Target version:
-
Start date:
2015-10-19
Due date:
% Done:

0%

TYPO3 Version:
6.2
PHP Version:
5.4
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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).

flexform_test.zip (3.8 KB) Dominique Kreemers, 2015-10-19 14:37

Bildschirmfoto 2015-10-19 um 14.33.49.png View (38 KB) Dominique Kreemers, 2015-10-19 14:37

History

#1 Updated by Online Now! GmbH almost 4 years ago

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 Updated by Mathias Schreiber over 3 years ago

  • Category changed from FormEngine aka TCEforms to DataHandler aka TCEmain

Also available in: Atom PDF