From b6b733b22f9e9f38786166c1274b135a99bce02a Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 20 Jun 2015 16:50:52 -0400 Subject: Close all subtasks when a task is closed --- app/Model/TaskStatus.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/Model/TaskStatus.php') diff --git a/app/Model/TaskStatus.php b/app/Model/TaskStatus.php index 30a65e1e..3f62667c 100644 --- a/app/Model/TaskStatus.php +++ b/app/Model/TaskStatus.php @@ -62,6 +62,7 @@ class TaskStatus extends Base */ public function close($task_id) { + $this->subtask->closeAll($task_id); return $this->changeStatus($task_id, Task::STATUS_CLOSED, time(), Task::EVENT_CLOSE); } @@ -113,7 +114,7 @@ class TaskStatus extends Base } /** - * Check the status of task + * Check the status of a task * * @access private * @param integer $task_id Task id -- cgit v1.2.3