[BUGFIX] ProcessedFile is persisted in sys_file as well
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Resource / ProcessedFile.php
index 62ed504..3020855 100644 (file)
@@ -192,16 +192,12 @@ class ProcessedFile extends AbstractFile {
                }
                // TODO this should be more generic (in fact it only works for local file paths)
                $addedFile = $this->storage->addFile($filePath, $this->storage->getProcessingFolder(), $this->name, 'replace');
+               $addedFile->setIndexable(FALSE);
 
                // Update some related properties
                $this->identifier = $addedFile->getIdentifier();
                $this->originalFileSha1 = $this->originalFile->getSha1();
-               // The added file is a FileInterface object with own uid
-               // We have to unset uid otherwise the processed file couldn't be stored in database
-               // Other non-used fields were removed before database progress
-               $updateProperties = $addedFile->getProperties();
-               unset($updateProperties['uid']);
-               $this->updateProperties($updateProperties);
+               $this->updateProperties($addedFile->getProperties());
                $this->deleted = FALSE;
                $this->updated = TRUE;
        }
@@ -524,4 +520,4 @@ class ProcessedFile extends AbstractFile {
 
 }
 
-?>
\ No newline at end of file
+?>