[BUGFIX] Use renamed folder object in postRename signal
[Packages/TYPO3.CMS.git] / 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;
     }