[BUGFIX] Use renamed folder object in postRename signal 82/59882/3
authorSusanne Moog <susanne.moog@typo3.com>
Wed, 6 Mar 2019 12:02:13 +0000 (13:02 +0100)
committerBenjamin Franzke <bfr@qbus.de>
Sun, 17 Mar 2019 14:31:43 +0000 (15:31 +0100)
The documentation states that the `emitPostFolderRename` signal
receives a reference to the renamed folder object. (see
https://docs.typo3.org/typo3cms/CoreApiReference/ApiOverview/Fal/Architecture/Signals.html)

The input of the signal has been adjusted to use the returned renamed
reference instead of the original folder to be renamed.

Resolves: #84539
Releases: master
Change-Id: Iceca142fce3293089b7603e211ba09f24746ca62
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/59882
Reviewed-by: Benni Mack <benni@typo3.org>
Reviewed-by: Benjamin Franzke <bfr@qbus.de>
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Benni Mack <benni@typo3.org>
Tested-by: Benjamin Franzke <bfr@qbus.de>
typo3/sysext/core/Classes/Resource/ResourceStorage.php

index e949494..011ea05 100644 (file)
@@ -2187,7 +2187,7 @@ class ResourceStorage implements ResourceStorageInterface
         }
         $returnObject = $this->getFolder($fileMappings[$folderObject->getIdentifier()]);
 
-        $this->emitPostFolderRenameSignal($folderObject, $returnObject->getName());
+        $this->emitPostFolderRenameSignal($returnObject, $returnObject->getName());
 
         return $returnObject;
     }