diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-06-20 16:50:52 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-06-20 16:50:52 -0400 |
commit | b6b733b22f9e9f38786166c1274b135a99bce02a (patch) | |
tree | 6a861a141cefd42ebd7571d2e9f3a649ed19e6c7 /app/Model/TaskStatus.php | |
parent | a409bf3ff496f9df496bc9eebe7200b9849bd2ee (diff) |
Close all subtasks when a task is closed
Diffstat (limited to 'app/Model/TaskStatus.php')
-rw-r--r-- | app/Model/TaskStatus.php | 3 |
1 files changed, 2 insertions, 1 deletions
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 |