[BUGFIX] MM references are not transformed to versioned entities 92/50292/3
authorOliver Hader <oliver@typo3.org>
Wed, 3 Aug 2016 14:03:19 +0000 (16:03 +0200)
committerOliver Hader <oliver.hader@typo3.org>
Fri, 21 Oct 2016 08:50:28 +0000 (10:50 +0200)
commit0d47228a648b429ef2b6e23caa3a6ccdafab02ba
treef2d647b2f4cc3398ab0d8db90b2291bf7d44022e
parent27b16b3b531878e96e059088393225e38aae315c
[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/50292
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Tested-by: Oliver Hader <oliver.hader@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