[BUGFIX] Adjust itemsProcFunc for sys_filemounts 21/43321/3
authorNicole Cordes <typo3@cordes.co>
Tue, 15 Sep 2015 11:15:48 +0000 (13:15 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Tue, 15 Sep 2015 12:00:43 +0000 (14:00 +0200)
Due to the changes of FormEngine the folder selection of filemount
records always show the folders from fileadmin. This patch adjust the
script to handle the incoming (already resolved) database information.

Resolves: #69815
Releases: master
Change-Id: I395920088a32d39b4ffc46d768ef581c9ca42a8e
Reviewed-on: http://review.typo3.org/43321
Reviewed-by: Michael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Michael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/core/Classes/Resource/Service/UserFileMountService.php

index e8eb962..7bb9e84 100644 (file)
@@ -32,12 +32,11 @@ class UserFileMountService {
         * of a selected mount
         *
         * @param array $PA the array with additional configuration options.
-        * @param \TYPO3\CMS\Backend\Form\FormEngine $tceformsObj Parent object
         * @return string The HTML code for the TCEform field
         */
-       public function renderTceformsSelectDropdown(&$PA, &$tceformsObj) {
+       public function renderTceformsSelectDropdown(&$PA) {
                // If working for sys_filemounts table
-               $storageUid = (int)$PA['row']['base'];
+               $storageUid = (int)$PA['row']['base'][0];
                if (!$storageUid) {
                        // If working for sys_file_collection table
                        $storageUid = (int)$PA['row']['storage'];