From 8f0e544cd91b24423951bbb5d3f3be0950a63abe Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Fri, 21 Nov 2014 21:41:26 -0500 Subject: Create TaskStatus model --- app/Action/Base.php | 1 + app/Action/TaskClose.php | 2 +- app/Action/TaskOpen.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) (limited to 'app/Action') diff --git a/app/Action/Base.php b/app/Action/Base.php index a438ce04..c9363617 100644 --- a/app/Action/Base.php +++ b/app/Action/Base.php @@ -16,6 +16,7 @@ use Core\Tool; * @property \Model\Comment $comment * @property \Model\Task $task * @property \Model\TaskFinder $taskFinder + * @property \Model\TaskStatus $taskStatus */ abstract class Base implements Listener { diff --git a/app/Action/TaskClose.php b/app/Action/TaskClose.php index f71d4b0e..6cf9be05 100644 --- a/app/Action/TaskClose.php +++ b/app/Action/TaskClose.php @@ -71,7 +71,7 @@ class TaskClose extends Base */ public function doAction(array $data) { - return $this->task->close($data['task_id']); + return $this->taskStatus->close($data['task_id']); } /** diff --git a/app/Action/TaskOpen.php b/app/Action/TaskOpen.php index 6847856c..fc29e9eb 100644 --- a/app/Action/TaskOpen.php +++ b/app/Action/TaskOpen.php @@ -56,7 +56,7 @@ class TaskOpen extends Base */ public function doAction(array $data) { - return $this->task->open($data['task_id']); + return $this->taskStatus->open($data['task_id']); } /** -- cgit v1.2.3