Create TaskStatus model

This commit is contained in:
Frédéric Guillot
2014-11-21 21:41:26 -05:00
parent 2a850757ee
commit 8f0e544cd9
10 changed files with 189 additions and 66 deletions

View File

@@ -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

View File

@@ -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.'));