Skip to content
Snippets Groups Projects
Commit 442f0f4a authored by Frans Saris's avatar Frans Saris
Browse files

[BUGFIX] Wrong SignalSlot dispatch calls in ResourceStorage

The wrong classname is used and for emitPreFolderCopySignal(),
emitPostFolderCopySignal(), emitPreFolderMoveSignal() and
emitPostFolderMoveSignal() the $newName parameter is not
passed through

Resolves: #57273
Releases: 6.2
Change-Id: Iaf82820abe29b97da93f9583435b9264671e3a38
Reviewed-on: https://review.typo3.org/28743
Reviewed-by: Xavier Perseguers
Reviewed-by: Markus Klein
Reviewed-by: Steffen Ritter
Reviewed-by: Ernesto Baschny
Tested-by: Xavier Perseguers
Reviewed-by: Frans Saris
Tested-by: Frans Saris
parent b036a0d4
Branches
Tags
No related merge requests found
......@@ -2190,7 +2190,7 @@ class ResourceStorage implements ResourceStorageInterface {
* @return void
*/
protected function emitPreFolderAddSignal(Folder $targetFolder, $name) {
$this->getSignalSlotDispatcher()->dispatch('ResourceStorage', self::SIGNAL_PreFolderAdd, array($targetFolder, $name));
$this->getSignalSlotDispatcher()->dispatch('TYPO3\\CMS\\Core\\Resource\\ResourceStorage', self::SIGNAL_PreFolderAdd, array($targetFolder, $name));
}
/**
......@@ -2200,7 +2200,7 @@ class ResourceStorage implements ResourceStorageInterface {
* @return void
*/
protected function emitPostFolderAddSignal(Folder $folder) {
$this->getSignalSlotDispatcher()->dispatch('ResourceStorage', self::SIGNAL_PostFolderAdd, array($folder));
$this->getSignalSlotDispatcher()->dispatch('TYPO3\\CMS\\Core\\Resource\\ResourceStorage', self::SIGNAL_PostFolderAdd, array($folder));
}
/**
......@@ -2212,7 +2212,7 @@ class ResourceStorage implements ResourceStorageInterface {
* @return void
*/
protected function emitPreFolderCopySignal(Folder $folder, Folder $targetFolder, $newName) {
$this->getSignalSlotDispatcher()->dispatch('ResourceStorage', self::SIGNAL_PreFolderCopy, array($folder, $targetFolder));
$this->getSignalSlotDispatcher()->dispatch('TYPO3\\CMS\\Core\\Resource\\ResourceStorage', self::SIGNAL_PreFolderCopy, array($folder, $targetFolder, $newName));
}
/**
......@@ -2224,7 +2224,7 @@ class ResourceStorage implements ResourceStorageInterface {
* @return void
*/
protected function emitPostFolderCopySignal(Folder $folder, Folder $targetFolder, $newName) {
$this->getSignalSlotDispatcher()->dispatch('ResourceStorage', self::SIGNAL_PostFolderCopy, array($folder, $targetFolder));
$this->getSignalSlotDispatcher()->dispatch('TYPO3\\CMS\\Core\\Resource\\ResourceStorage', self::SIGNAL_PostFolderCopy, array($folder, $targetFolder, $newName));
}
/**
......@@ -2236,7 +2236,7 @@ class ResourceStorage implements ResourceStorageInterface {
* @return void
*/
protected function emitPreFolderMoveSignal(Folder $folder, Folder $targetFolder, $newName) {
$this->getSignalSlotDispatcher()->dispatch('ResourceStorage', self::SIGNAL_PreFolderMove, array($folder, $targetFolder));
$this->getSignalSlotDispatcher()->dispatch('TYPO3\\CMS\\Core\\Resource\\ResourceStorage', self::SIGNAL_PreFolderMove, array($folder, $targetFolder, $newName));
}
/**
......@@ -2248,7 +2248,7 @@ class ResourceStorage implements ResourceStorageInterface {
* @return void
*/
protected function emitPostFolderMoveSignal(Folder $folder, Folder $targetFolder, $newName) {
$this->getSignalSlotDispatcher()->dispatch('ResourceStorage', self::SIGNAL_PostFolderMove, array($folder, $targetFolder));
$this->getSignalSlotDispatcher()->dispatch('TYPO3\\CMS\\Core\\Resource\\ResourceStorage', self::SIGNAL_PostFolderMove, array($folder, $targetFolder, $newName));
}
/**
......@@ -2259,7 +2259,7 @@ class ResourceStorage implements ResourceStorageInterface {
* @return void
*/
protected function emitPreFolderRenameSignal(Folder $folder, $newName) {
$this->getSignalSlotDispatcher()->dispatch('ResourceStorage', self::SIGNAL_PreFolderRename, array($folder, $newName));
$this->getSignalSlotDispatcher()->dispatch('TYPO3\\CMS\\Core\\Resource\\ResourceStorage', self::SIGNAL_PreFolderRename, array($folder, $newName));
}
/**
......@@ -2270,7 +2270,7 @@ class ResourceStorage implements ResourceStorageInterface {
* @return void
*/
protected function emitPostFolderRenameSignal(Folder $folder, $newName) {
$this->getSignalSlotDispatcher()->dispatch('ResourceStorage', self::SIGNAL_PostFolderRename, array($folder, $newName));
$this->getSignalSlotDispatcher()->dispatch('TYPO3\\CMS\\Core\\Resource\\ResourceStorage', self::SIGNAL_PostFolderRename, array($folder, $newName));
}
/**
......@@ -2280,7 +2280,7 @@ class ResourceStorage implements ResourceStorageInterface {
* @return void
*/
protected function emitPreFolderDeleteSignal(Folder $folder) {
$this->getSignalSlotDispatcher()->dispatch('ResourceStorage', self::SIGNAL_PreFolderDelete, array($folder));
$this->getSignalSlotDispatcher()->dispatch('TYPO3\\CMS\\Core\\Resource\\ResourceStorage', self::SIGNAL_PreFolderDelete, array($folder));
}
/**
......@@ -2290,7 +2290,7 @@ class ResourceStorage implements ResourceStorageInterface {
* @return void
*/
protected function emitPostFolderDeleteSignal(Folder $folder) {
$this->getSignalSlotDispatcher()->dispatch('ResourceStorage', self::SIGNAL_PostFolderDelete, array($folder));
$this->getSignalSlotDispatcher()->dispatch('TYPO3\\CMS\\Core\\Resource\\ResourceStorage', self::SIGNAL_PostFolderDelete, array($folder));
}
/**
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment