summaryrefslogtreecommitdiff
path: root/app/Controller
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-11-21 21:41:26 -0500
committerFrédéric Guillot <fred@kanboard.net>2014-11-21 21:41:26 -0500
commit8f0e544cd91b24423951bbb5d3f3be0950a63abe (patch)
tree456291eb5d7bdb846329b8b4fe55cdb5490a442c /app/Controller
parent2a850757ee5f9c1a2119c562cf6caba3eda7ceba (diff)
Create TaskStatus model
Diffstat (limited to 'app/Controller')
-rw-r--r--app/Controller/Base.php1
-rw-r--r--app/Controller/Task.php4
2 files changed, 3 insertions, 2 deletions
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.'));