[BUGFIX] Index all file mounts in FAL indexer scheduler task 61/48561/6
authorHannes Bochmann <hannes.bochmann@dmk-ebusiness.de>
Mon, 13 Jun 2016 07:58:48 +0000 (09:58 +0200)
committerFrans Saris <franssaris@gmail.com>
Mon, 11 Jul 2016 09:50:36 +0000 (11:50 +0200)
This patch makes sure all file mounts are indexed instead of only the
first if the CLI user has multiple file mounts.

Resolves: #76441
Releases: master, 7.6, 6.2
Change-Id: I92b1c11c46e6f2a7b5927d2f9013404681e0e8ad
Reviewed-on: https://review.typo3.org/48561
Tested-by: Bamboo TYPO3com <info@typo3.com>
Reviewed-by: Stephan GroƟberndt <stephan@grossberndt.de>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Frans Saris <franssaris@gmail.com>
Tested-by: Frans Saris <franssaris@gmail.com>
typo3/sysext/core/Classes/Resource/Index/Indexer.php

index 74f801b..92d65dd 100644 (file)
@@ -93,7 +93,7 @@ class Indexer
     public function processChangesInStorages()
     {
         // get all file-identifiers from the storage
-        $availableFiles = $this->storage->getFileIdentifiersInFolder($this->storage->getRootLevelFolder()->getIdentifier(), true, true);
+        $availableFiles = $this->storage->getFileIdentifiersInFolder($this->storage->getRootLevelFolder(false)->getIdentifier(), true, true);
         $this->detectChangedFilesInStorage($availableFiles);
         $this->processChangedAndNewFiles();