[BUGFIX] getFolders() does not return correct keys
authorAndreas Wolf <andreas.wolf@typo3.org>
Fri, 12 Oct 2012 20:34:57 +0000 (22:34 +0200)
committerAndreas Wolf <andreas.wolf@ikt-werk.de>
Sun, 21 Oct 2012 15:09:10 +0000 (17:09 +0200)
Resolves: #41941
Releases: 6.0
Change-Id: Ia500d4892532a7e5ec7a997f4b3b0c521d22a654
Reviewed-on: http://review.typo3.org/15858
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
Reviewed-by: Andreas Wolf
Tested-by: Andreas Wolf
typo3/sysext/core/Classes/Resource/Folder.php

index d887468..dde72cd 100644 (file)
@@ -218,7 +218,7 @@ class Folder implements \TYPO3\CMS\Core\Resource\FolderInterface {
                        // -> the identifier for subfolders is not composed of the
                        // current item's identifier for these
                        foreach ($folderArray as $folder) {
-                               $folderObjects[] = $factory->createFolderObject($this->storage, $this->identifier . $folder['name'] . '/', $folder['name']);
+                               $folderObjects[$folder['name']] = $factory->createFolderObject($this->storage, $this->identifier . $folder['name'] . '/', $folder['name']);
                        }
                }
                return $folderObjects;