[BUGFIX] Fix undefined Tree error in FolderBrowser 26/49226/3
authorWouter Wolters <typo3@wouterwolters.nl>
Wed, 27 Jul 2016 09:48:02 +0000 (11:48 +0200)
committerBenni Mack <benni@typo3.org>
Tue, 2 Aug 2016 13:14:17 +0000 (15:14 +0200)
Add the missing LegacyTree initialization to FolderBrowser.

Resolves: #76868
Resolves: #72369
Releases: master,7.6
Change-Id: I47494087e46ae63e100e38ff5345b230030c8b7d
Reviewed-on: https://review.typo3.org/49226
Tested-by: Bamboo TYPO3com <info@typo3.com>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/recordlist/Classes/Browser/FolderBrowser.php

index a18284f..3615591 100644 (file)
@@ -44,6 +44,10 @@ class FolderBrowser extends AbstractElementBrowser implements ElementBrowserInte
     {
         parent::initialize();
         $this->pageRenderer->loadRequireJsModule('TYPO3/CMS/Recordlist/BrowseFolders');
+        $this->pageRenderer->loadRequireJsModule('TYPO3/CMS/Backend/LegacyTree', 'function() {
+            DragDrop.table = "folders";
+            Tree.registerDragDropHandlers();
+        }');
     }
 
     /**