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/Controller/Base.php | 1 + app/Controller/Task.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'app/Controller') diff --git a/app/Controller/Base.php b/app/Controller/Base.php index bd7bd2ee..5e208009 100644 --- a/app/Controller/Base.php +++ b/app/Controller/Base.php @@ -37,6 +37,7 @@ use Model\LastLogin; * @property \Model\TaskExport $taskExport * @property \Model\TaskFinder $taskFinder * @property \Model\TaskPermission $taskPermission + * @property \Model\TaskStatus $taskStatus * @property \Model\TaskValidator $taskValidator * @property \Model\CommentHistory $commentHistory * @property \Model\SubtaskHistory $subtaskHistory diff --git a/app/Controller/Task.php b/app/Controller/Task.php index d1be8e1e..cad2f583 100644 --- a/app/Controller/Task.php +++ b/app/Controller/Task.php @@ -268,7 +268,7 @@ class Task extends Base $this->checkCSRFParam(); - if ($this->task->close($task['id'])) { + if ($this->taskStatus->close($task['id'])) { $this->session->flash(t('Task closed successfully.')); } else { $this->session->flashError(t('Unable to close this task.')); @@ -295,7 +295,7 @@ class Task extends Base $this->checkCSRFParam(); - if ($this->task->open($task['id'])) { + if ($this->taskStatus->open($task['id'])) { $this->session->flash(t('Task opened successfully.')); } else { $this->session->flashError(t('Unable to open this task.')); -- cgit v1.2.3