[BUGFIX] Index all file mounts in FAL indexer scheduler task 87/48887/2
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 11:03:46 +0000 (13:03 +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/48887
Reviewed-by: Frans Saris <franssaris@gmail.com>
Tested-by: Frans Saris <franssaris@gmail.com>
typo3/sysext/core/Classes/Resource/Index/Indexer.php

index d1c9338..140b22e 100644 (file)
@@ -91,7 +91,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();