[FOLLOWUP][BUGFIX] Workspaces: Properly use slots to modify data 09/41209/3
authorBenjamin Mack <benni@typo3.org>
Tue, 14 Jul 2015 14:39:58 +0000 (16:39 +0200)
committerBenjamin Mack <benni@typo3.org>
Tue, 14 Jul 2015 14:41:09 +0000 (16:41 +0200)
Using slots in GridDataService does not work since passing
arguments by reference does not work. Since TYPO3 CMS 6.2
it's possible that the SignalSlotDispatcher returns
(modified) arguments.

Change-Id: I6a5e123bfc0d44d484e5b432e65a4d6cb50b75fb
Resolves: #60926
Releases: 6.2
Reviewed-on: http://review.typo3.org/41209
Reviewed-by: Benjamin Mack <benni@typo3.org>
Tested-by: Benjamin Mack <benni@typo3.org>
typo3/sysext/workspaces/Classes/Service/GridDataService.php

index 77083fa..4e268f6 100644 (file)
@@ -603,7 +603,7 @@ class GridDataService {
        protected function emitSignal($signalName) {
                // Arguments are always ($this, [method argument], [method argument], ...)
                $signalArguments = array_merge(array($this), array_slice(func_get_args(), 1));
-               $slotReturn = $this->getSignalSlotDispatcher()->dispatch(\TYPO3\CMS\Workspaces\Service\GridDataService::class, $signalName, $signalArguments);
+               $slotReturn = $this->getSignalSlotDispatcher()->dispatch('TYPO3\\CMS\\Workspaces\\Service\\GridDataService', $signalName, $signalArguments);
                return array_slice($slotReturn, 1);
        }