[BUGFIX] FAL relations duplicated when saving in workspaces 13/47313/2
authorAndreas Wolf <andreas.wolf@typo3.org>
Thu, 22 Oct 2015 17:40:11 +0000 (19:40 +0200)
committerAndreas Wolf <andreas.wolf@typo3.org>
Sun, 5 Jun 2016 15:14:43 +0000 (17:14 +0200)
commit1c94dc01afabcf574e24860d323ff84045b5bf18
tree6e38595bf221faa325b495f77c83f368c56053a5
parent06697b4454bcfb9d9d2c84650a776661ee986290
[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
(cherry picked from commit a0cd456491740ae3adee1206d193f2f67b6677b1)
Reviewed-on: https://review.typo3.org/47313
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