[BUGFIX] Use correct file data variable in Indexer 39/26339/3
authorAlexander Stehlik <alexander.stehlik@googlemail.com>
Sat, 14 Dec 2013 18:09:52 +0000 (19:09 +0100)
committerMarkus Klein <klein.t3@mfc-linz.at>
Wed, 18 Dec 2013 14:58:04 +0000 (15:58 +0100)
The processChangedAndNewFiles() method in the Indexer class now uses
the $fileIndexEntry variable for retrieving a file object from the
resource factory instead of the invalid $data variable which is NULL.

Resolves: #54312
Releases: 6.2
Change-Id: I3b9c2ce99f7b4b7c575cc4055c02912c306ed789
Reviewed-on: https://review.typo3.org/26339
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
Reviewed-by: Markus Klein
Tested-by: Markus Klein
typo3/sysext/core/Classes/Resource/Index/Indexer.php

index 66ad579..d1f58da 100644 (file)
@@ -180,9 +180,9 @@ class Indexer {
                                if (count($files) > 0) {
                                        foreach ($files as $fileIndexEntry) {
                                                if ($fileIndexEntry['missing']) {
-                                                       $fileObject = $this->getResourceFactory()->getFileObject($data['uid'], $data);
+                                                       $fileObject = $this->getResourceFactory()->getFileObject($fileIndexEntry['uid'], $fileIndexEntry);
                                                        $fileObject->updateProperties(array(
-                                                               'identifier'
+                                                               'identifier' => $identifier
                                                        ));
                                                        $this->updateIndexEntry($fileObject);
                                                        $this->identifiedFileUids[] = $fileObject->getUid();