[BUGFIX] Fix undefined variable to evaluate `fileFolder_recursions` correctly 04/54204/2
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Tue, 19 Sep 2017 14:24:38 +0000 (16:24 +0200)
committerFrank Naegler <frank.naegler@typo3.org>
Fri, 22 Sep 2017 09:40:41 +0000 (11:40 +0200)
Resolves: #82512
Releases: master, 8.7
Change-Id: Ibfbd1a8e347f5b25871f5d073994bdb2af264051
Reviewed-on: https://review.typo3.org/54204
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
typo3/sysext/backend/Classes/Form/FormDataProvider/AbstractItemProvider.php

index 08d3ef2..e6993b7 100644 (file)
@@ -415,8 +415,8 @@ abstract class AbstractItemProvider
             ) {
                 $fileExtensionList = $result['processedTca']['columns'][$fieldName]['config']['fileFolder_extList'];
             }
-            $recursionLevels = isset($fieldValue['config']['fileFolder_recursions'])
-                ? MathUtility::forceIntegerInRange($fieldValue['config']['fileFolder_recursions'], 0, 99)
+            $recursionLevels = isset($result['processedTca']['columns'][$fieldName]['config']['fileFolder_recursions'])
+                ? MathUtility::forceIntegerInRange($result['processedTca']['columns'][$fieldName]['config']['fileFolder_recursions'], 0, 99)
                 : 99;
             $fileArray = GeneralUtility::getAllFilesAndFoldersInPath([], $fileFolder, $fileExtensionList, 0, $recursionLevels);
             $fileArray = GeneralUtility::removePrefixPathFromList($fileArray, $fileFolder);