From dbc4443bb18ab2f588b5f8e2f6dbec4332a46660 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sun, 25 May 2014 18:27:18 -0400 Subject: Make sure that files are removed when a task is deleted --- app/Model/Task.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'app/Model/Task.php') diff --git a/app/Model/Task.php b/app/Model/Task.php index faa33ca9..45c68aec 100644 --- a/app/Model/Task.php +++ b/app/Model/Task.php @@ -441,6 +441,9 @@ class Task extends Base */ public function remove($task_id) { + $file = new File($this->db, $this->event); + $file->removeAll($task_id); + return $this->db->table(self::TABLE)->eq('id', $task_id)->remove(); } -- cgit v1.2.3