Skip to content
Snippets Groups Projects
Commit d054ea7c authored by Oliver Hader's avatar Oliver Hader Committed by Susanne Moog
Browse files

[BUGFIX] Use proper fallback value of files per page in file list module

In case TSconfig options.file_list.filesPerPage is not defined the
resulting value falls back to 1 - however this should be the same as
defined in FileList::$iLimit, which is 40 per default.

Resolves: #85043
Releases: master
Change-Id: I33b024b81697350aeae54251e1ea66a36efc4d43
Reviewed-on: https://review.typo3.org/57003


Reviewed-by: default avatarRalf Zimmermann <ralf.zimmermann@tritum.de>
Tested-by: default avatarRalf Zimmermann <ralf.zimmermann@tritum.de>
Reviewed-by: default avatarBjörn Jacob <bjoern.jacob@tritum.de>
Tested-by: default avatarBjörn Jacob <bjoern.jacob@tritum.de>
Reviewed-by: default avatarSusanne Moog <susanne.moog@typo3.org>
Tested-by: default avatarSusanne Moog <susanne.moog@typo3.org>
parent 12a8eaf2
Branches
Tags
No related merge requests found
......@@ -289,7 +289,7 @@ class FileList
$this->fileListController = $fileListController;
$this->thumbnailConfiguration = GeneralUtility::makeInstance(ThumbnailConfiguration::class);
$this->iLimit = MathUtility::forceIntegerInRange(
$backendUser->getTSConfig()['options.']['file_list.']['filesPerPage'] ?? 1,
$backendUser->getTSConfig()['options.']['file_list.']['filesPerPage'] ?? $this->iLimit,
1
);
}
......
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