Revert "[BUGFIX] sys_file record doesn't get flagged as delete" 34/22034/3
authorChristian Kuhn <lolli@schwarzbu.ch>
Sat, 6 Jul 2013 16:05:51 +0000 (18:05 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 6 Jul 2013 16:09:22 +0000 (18:09 +0200)
This reverts commit d22cea3b61ffec1931bf5b12dd9cddde5eb28ca1

The patch kills unit tests. We guess there is some incomplete
mocking in Resource tests but are not able to quickly find
the root of it. The patch is reverted for now until the tests
are green again.

Change-Id: I5e7bb6e14187f7179e00b0b00decda644e1c6efe
Resolves: #48336
Releases: 6.2, 6.1, 6.0
Reviewed-on: https://review.typo3.org/22034
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/core/Classes/Resource/AbstractFile.php
typo3/sysext/core/Classes/Resource/ResourceStorage.php

index 39c6e5b..48217d4 100644 (file)
@@ -448,7 +448,6 @@ abstract class AbstractFile implements FileInterface {
         */
        public function setDeleted() {
                $this->deleted = TRUE;
-               $this->updateProperties(array('deleted' => TRUE));
        }
 
        /**
index 15582d6..4b7d636 100644 (file)
@@ -999,7 +999,6 @@ class ResourceStorage {
                }
                // Mark the file object as deleted
                $fileObject->setDeleted();
-               $this->getFileRepository()->update($fileObject);
 
                $this->emitPostFileDeleteSignal($fileObject);