[BUGFIX] FAL relations duplicated when saving in workspaces 33/44233/5
authorAndreas Wolf <andreas.wolf@typo3.org>
Thu, 22 Oct 2015 17:40:11 +0000 (19:40 +0200)
committerAndreas Wolf <andreas.wolf@typo3.org>
Fri, 18 Mar 2016 09:18:36 +0000 (10:18 +0100)
commita0cd456491740ae3adee1206d193f2f67b6677b1
treef96ff6f6594c313166ef970b7e1d9509070b8f54
parentd7dcc7fe8c802634d2d883e852b11233049f57a0
[BUGFIX] FAL relations duplicated when saving in workspaces

In a workspace, when a record is saved which contains an IRRE-managed
relation in a flexform field, the relation is duplicated. The reason is
that the workspace information is lost along the way when processing the
flexform content.

This commit introduces an additional method parameter to the relevant
flexform processing callbacks.

Additionally, this fixes an error in the Flexform XML fixture, which
(apparently) made the test go into an endless loop.

Work time for this patch was sponsored by Matthias Krappitz (aemka.de),
the time for developing the test was sponsored by me.

Releases: master, 7.6, 6.2
Resolves: #70962
Change-Id: If6d71cf966408fcf976365fc01e6a2529bf1902d
Reviewed-on: https://review.typo3.org/44233
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Markus Sommer <markussom@posteo.de>
Tested-by: Markus Sommer <markussom@posteo.de>
Reviewed-by: Andreas Wolf <andreas.wolf@typo3.org>
Tested-by: Andreas Wolf <andreas.wolf@typo3.org>
typo3/sysext/core/Classes/DataHandling/DataHandler.php
typo3/sysext/core/Tests/Functional/DataHandling/FlexformIrre/ActionTestCase.php [new file with mode: 0644]
typo3/sysext/core/Tests/Functional/DataHandling/FlexformIrre/DataSet/LiveDefaultElements.csv [new file with mode: 0644]
typo3/sysext/core/Tests/Functional/DataHandling/FlexformIrre/DataSet/LiveDefaultPages.csv [new file with mode: 0644]
typo3/sysext/core/Tests/Functional/DataHandling/FlexformIrre/Fixtures/fileadmin/typo3-logo.png [new file with mode: 0644]
typo3/sysext/core/Tests/Functional/Fixtures/Extensions/irre_tutorial/Configuration/FlexForms/tt_content_flexform.xml