Commit 81af4f42 authored by Andreas Fernandez's avatar Andreas Fernandez Committed by Frank Nägler
Browse files

[BUGFIX] Fix undefined variable to evaluate `fileFolder_recursions` correctly

Resolves: #82512
Releases: master, 8.7
Change-Id: Ibfbd1a8e347f5b25871f5d073994bdb2af264051
Reviewed-on: https://review.typo3.org/54174

Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: Frank Nägler's avatarFrank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Nägler's avatarFrank Naegler <frank.naegler@typo3.org>
parent 28246206
......@@ -397,8 +397,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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment