Sfoglia il codice sorgente

Revert "clone $object to use it in postRemove"

This reverts commit 189ab07ec655f45cf64e19be838d92711174036c.
Thomas Rabaix 14 anni fa
parent
commit
5b45da9595
1 ha cambiato i file con 2 aggiunte e 3 eliminazioni
  1. 2 3
      Admin/Admin.php

+ 2 - 3
Admin/Admin.php

@@ -452,11 +452,10 @@ abstract class Admin implements AdminInterface, DomainObjectInterface
     }
 
     public function delete($object)
-    {    
-        $media = clone $object;
+    {
         $this->preRemove($object);
         $this->modelManager->delete($object);
-        $this->postRemove($media);
+        $this->postRemove($object);
     }
 
     public function preUpdate($object)