[BUGFIX] Opposite MM relation between both new entities not created 52/49352/2
authorOliver Hader <oliver@typo3.org>
Tue, 2 Aug 2016 22:32:11 +0000 (00:32 +0200)
committerOliver Hader <oliver.hader@typo3.org>
Wed, 3 Aug 2016 16:39:42 +0000 (18:39 +0200)
commiteee0e85e9678d94ce40b5f9642ec31b052598833
treee6f62c0e1bd1a928921741b3cda69cde62e346c0
parente623b79693734cf58eecaf89366e69ba8a27670b
[BUGFIX] Opposite MM relation between both new entities not created

Scenario:
* usage in a workspace
* tt_content and sys_category records are created at the same time
  with defining an MM relation
* sys_category.items (group/db field, with MM and opposite usage
  defined) is filled with accordant tt_content record

Problem:
* the remap-stack in DataHandler does not consider references that
  are defined in a group/db field
* thus, these kind of relations are just not set, since the opposite
  reference uid cannot be resolved

Solution:
* process group/db relations with new record uids in remap-stack

Resolves: #77374
Releases: master, 7.6
Change-Id: If5e6589e2a0995dc4fce3ff49bd309f2fdb6eb24
Reviewed-on: https://review.typo3.org/49337
Reviewed-on: https://review.typo3.org/49352
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/workspaces/Tests/Functional/DataHandling/ManyToMany/Modify/DataSet/createCategoryNCreateRelation.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/ManyToMany/Publish/DataSet/createCategoryNCreateRelation.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/ManyToMany/PublishAll/DataSet/createCategoryNCreateRelation.csv