in progress : reorder image

This commit is contained in:
Etienne Roudeix
2013-12-12 15:30:10 +01:00
parent ff828bf1ba
commit 93537b8d71
17 changed files with 282 additions and 21 deletions

View File

@@ -94,7 +94,11 @@ class Folder extends BaseFolder
public function preDelete(ConnectionInterface $con = null)
{
$this->dispatchEvent(TheliaEvents::BEFORE_DELETEFOLDER, new FolderEvent($this));
$this->reorderBeforeDelete();
$this->reorderBeforeDelete(
array(
"parent" => $this->getParent(),
)
);
return true;
}