[BUGFIX] LiveSearchToolbarItem not initialized correctly 75/31475/3
authorGernot Schulmeister <gernotschulmeister@gmx.at>
Mon, 7 Jul 2014 21:33:42 +0000 (23:33 +0200)
committerMarkus Klein <klein.t3@mfc-linz.at>
Mon, 7 Jul 2014 21:37:10 +0000 (23:37 +0200)
Initialising the LiveSearchToolbarItem class with two leading
backslashes \\ prevents XClasses of the LiveSearchToolbarItem
to be found by the GeneralUtility:makeInstance() function.

Resolves: #59959
Releases: 6.3, 6.2
Change-Id: Iab6bb31379090fa5770ed20f8fa8113e61071fe0
Reviewed-on: https://review.typo3.org/31475
Reviewed-by: Markus Klein
Tested-by: Markus Klein
typo3/sysext/backend/Classes/Controller/BackendController.php

index 42c4ac1..91e9378 100644 (file)
@@ -139,7 +139,7 @@ class BackendController {
                $coreToolbarItems = array(
                        'shortcuts' => 'TYPO3\\CMS\\Backend\\Toolbar\\ShortcutToolbarItem',
                        'clearCacheActions' => 'TYPO3\\CMS\\Backend\\Toolbar\\ClearCacheToolbarItem',
                $coreToolbarItems = array(
                        'shortcuts' => 'TYPO3\\CMS\\Backend\\Toolbar\\ShortcutToolbarItem',
                        'clearCacheActions' => 'TYPO3\\CMS\\Backend\\Toolbar\\ClearCacheToolbarItem',
-                       'liveSearch' => '\\TYPO3\\CMS\\Backend\\Toolbar\\LiveSearchToolbarItem'
+                       'liveSearch' => 'TYPO3\\CMS\\Backend\\Toolbar\\LiveSearchToolbarItem'
                );
                foreach ($coreToolbarItems as $toolbarItemName => $toolbarItemClassName) {
                        $toolbarItem = GeneralUtility::makeInstance($toolbarItemClassName, $this);
                );
                foreach ($coreToolbarItems as $toolbarItemName => $toolbarItemClassName) {
                        $toolbarItem = GeneralUtility::makeInstance($toolbarItemClassName, $this);