[BUGFIX] MM references are not transformed to versioned entities 38/49338/10
authorOliver Hader <oliver@typo3.org>
Wed, 3 Aug 2016 14:03:19 +0000 (16:03 +0200)
committerSusanne Moog <susanne.moog@typo3.org>
Thu, 20 Oct 2016 14:49:36 +0000 (16:49 +0200)
commitdf98a15ad60194c9a8fb0b641f67c1655c227199
treed81ffa437e370f5014d3da782c4463b9df30e754
parent1aa85fd06160be938f7a378cae62d47f3e1d6185
[BUGFIX] MM references are not transformed to versioned entities

Scenario:
* within a workspace
* using a MM intermediate table for relations
* having versioned entities on both sides of the relation to be defined
* however, the live uids of the entities are submitted to the data handler

Problem:
* MM relation is created with the live uids on one side

Solution:
* convert submitted relation uids to accordant version uids in workspace

Resolves: #77375
Releases: master, 7.6
Change-Id: Id099845258d3e2820ac9c369acc0339689b768a9
Reviewed-on: https://review.typo3.org/49338
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
typo3/sysext/core/Classes/DataHandling/DataHandler.php
typo3/sysext/core/Classes/DataHandling/PlainDataResolver.php
typo3/sysext/core/Classes/Database/RelationHandler.php
typo3/sysext/workspaces/Tests/Functional/DataHandling/ManyToMany/Modify/DataSet/createCategoryWContentNAddRelation.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/ManyToMany/Modify/DataSet/createContentWCategoryNAddRelation.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/ManyToMany/Publish/DataSet/createCategoryWContentNAddRelation.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/ManyToMany/Publish/DataSet/createContentWCategoryNAddRelation.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/ManyToMany/PublishAll/DataSet/createCategoryWContentNAddRelation.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/ManyToMany/PublishAll/DataSet/createContentWCategoryNAddRelation.csv