summaryrefslogtreecommitdiff
path: root/app/Model/Task.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Model/Task.php')
-rw-r--r--app/Model/Task.php3
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();
}