[BUGFIX] Adjust itemsProcFunc for sys_file_collection 25/45325/2
authorGerrit Mohrmann <mohrmann.t3@gmx.de>
Wed, 16 Dec 2015 21:16:28 +0000 (22:16 +0100)
committerFrank Nägler <frank.naegler@typo3.org>
Fri, 18 Dec 2015 12:20:36 +0000 (13:20 +0100)
This patch corrects fetching the storage uid from the row data for
sys_file_collection

Resolves: #72276
Releases: master
Change-Id: I73ef3e5121249942cb12859081194ba499559559
Reviewed-on: https://review.typo3.org/45325
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: Frank Nägler <frank.naegler@typo3.org>
Tested-by: Frank Nägler <frank.naegler@typo3.org>
typo3/sysext/core/Classes/Resource/Service/UserFileMountService.php

index 0bf7fb1..8c9bc3c 100644 (file)
@@ -40,7 +40,7 @@ class UserFileMountService
         $storageUid = (int)$PA['row']['base'][0];
         if (!$storageUid) {
             // If working for sys_file_collection table
-            $storageUid = (int)$PA['row']['storage'];
+            $storageUid = (int)$PA['row']['storage'][0];
         }
         if ($storageUid > 0) {
             /** @var $storageRepository \TYPO3\CMS\Core\Resource\StorageRepository */