Revert "[BUGFIX] sys_file record doesn't get flagged as delete" 65/22665/2
authorOliver Hader <oliver.hader@typo3.org>
Mon, 29 Jul 2013 16:39:26 +0000 (18:39 +0200)
committerOliver Hader <oliver.hader@typo3.org>
Mon, 29 Jul 2013 16:43:19 +0000 (18:43 +0200)
This reverts commit 18bb6574966d6fdff944e8fd5f95e9225dae4365

Change-Id: I2cd6c4a03c3336e73bfe81fa86f222ce5a352f7d
Reviewed-on: https://review.typo3.org/22665
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
typo3/sysext/core/Classes/Resource/AbstractFile.php
typo3/sysext/core/Classes/Resource/ResourceStorage.php

index 94350df..a052583 100644 (file)
@@ -448,7 +448,6 @@ abstract class AbstractFile implements FileInterface {
         */
        public function setDeleted() {
                $this->deleted = TRUE;
-               $this->updateProperties(array('deleted' => TRUE));
        }
 
        /**
@@ -562,4 +561,4 @@ abstract class AbstractFile implements FileInterface {
 }
 
 
-?>
\ No newline at end of file
+?>
index b8c003e..165b64a 100644 (file)
@@ -995,7 +995,6 @@ class ResourceStorage {
                }
                // Mark the file object as deleted
                $fileObject->setDeleted();
-               $this->getFileRepository()->update($fileObject);
 
                $this->emitPostFileDeleteSignal($fileObject);