diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-05-25 18:27:18 -0400 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-05-25 18:27:18 -0400 |
commit | dbc4443bb18ab2f588b5f8e2f6dbec4332a46660 (patch) | |
tree | dd4f2e7c69120697f43afe259746a12981ed228f /app/Model/Task.php | |
parent | b6c4c93fe7a8a86f9c2aca6a388cb897c6a968c5 (diff) |
Make sure that files are removed when a task is deleted
Diffstat (limited to 'app/Model/Task.php')
-rw-r--r-- | app/Model/Task.php | 3 |
1 files changed, 3 insertions, 0 deletions
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(); } |