Commit ba4c7892 authored by Oliver Bartsch's avatar Oliver Bartsch Committed by Christian Kuhn
Browse files

[BUGFIX] Properly explode file collection uids as int

The FilesProcessor previously exploded the comma
separated list of file collection uids with trimExplode.

However, the underlying FileCollector method
expects the uids to be of type int. Therefore, the
data processor now uses GU::intExplode(), like
already done in FileContentObject, instead.

Resolves: #93193
Releases: master
Change-Id: Ib0923b1484993793e1dd50be395fac78aa61cda7
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72204


Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Tested-by: Jochen's avatarJochen <rothjochen@gmail.com>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Reviewed-by: Jochen's avatarJochen <rothjochen@gmail.com>
Reviewed-by: Oliver Klee's avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 146220ca
......@@ -92,7 +92,7 @@ class FilesProcessor implements DataProcessorInterface
// collections
$collections = $cObj->stdWrapValue('collections', $processorConfiguration ?? []);
if (!empty($collections)) {
$collections = GeneralUtility::trimExplode(',', (string)$collections, true);
$collections = GeneralUtility::intExplode(',', (string)$collections, true);
$fileCollector->addFilesFromFileCollections($collections);
}
......
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