[BUGFIX] Filelist folders not expandable 53/55053/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Tue, 12 Dec 2017 16:33:09 +0000 (17:33 +0100)
committerBenni Mack <benni@typo3.org>
Tue, 12 Dec 2017 16:42:41 +0000 (17:42 +0100)
A wrong type given to JsonResponse->setPayload()
fatals the return type on expanding the filelist
folder tree.

Change-Id: I7510ba7d5098b8b91c5016472487f73c6ca77e2c
Resolves: #83303
Releases: master
Reviewed-on: https://review.typo3.org/55053
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
Tested-by: TYPO3com <no-reply@typo3.com>
typo3/sysext/backend/Classes/Controller/FileSystemNavigationFrameController.php

index 260da27..85eab22 100644 (file)
@@ -236,7 +236,7 @@ class FileSystemNavigationFrameController
         if ($this->foldertree->getAjaxStatus() === false) {
             return $response->withStatus(500);
         }
-        return GeneralUtility::makeInstance(JsonResponse::class, $tree);
+        return GeneralUtility::makeInstance(JsonResponse::class, [$tree]);
     }
 
     /**