[BUGFIX] Wrong nesting of deleted versioned child records 91/31591/3
authorOliver Hader <oliver@typo3.org>
Wed, 25 Jun 2014 11:19:13 +0000 (13:19 +0200)
committerOliver Hader <oliver.hader@typo3.org>
Wed, 13 Aug 2014 14:27:50 +0000 (16:27 +0200)
If deleting an IRRE child reference, the nesting leving in the
workspace module is not shown correctly. The reason for that is,
that the sys_refindex entry points to the live id of the deleted
child record.

This change takes care of correct visualization only, but does not
touch the sys_refindex behavior in this case.

Resolves: #59853
Releases: master, 6.2
Change-Id: I09970d12ba10e528c150275952ec4c9ff8333a0a
Reviewed-on: http://review.typo3.org/31591
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Tested-by: Oliver Hader <oliver.hader@typo3.org>
typo3/sysext/workspaces/Classes/Service/Dependency/CollectionService.php

index a9f330b..3d9fbc4 100644 (file)
@@ -60,6 +60,11 @@ class CollectionService implements \TYPO3\CMS\Core\SingletonInterface {
                        $this->dependencyResolver->setWorkspace($this->getWorkspace());
 
                        $this->dependencyResolver->setEventCallback(
+                               Dependency\ElementEntity::EVENT_Construct,
+                               $this->getDependencyCallback('createNewDependentElementCallback')
+                       );
+
+                       $this->dependencyResolver->setEventCallback(
                                Dependency\ElementEntity::EVENT_CreateChildReference,
                                $this->getDependencyCallback('createNewDependentElementChildReferenceCallback')
                        );