diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-07-23 21:48:59 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-07-23 21:48:59 -0400 |
commit | 24555080fd3ca8607f0a798b5a0e4be98ff131f8 (patch) | |
tree | 8a92479149bbc079a7f6b1daa678d612534d80a2 /app/Controller | |
parent | f216e345ba2ad7486037c393c0475a1371ca2b00 (diff) |
Create new class SubtaskStatusModel
Diffstat (limited to 'app/Controller')
-rw-r--r-- | app/Controller/SubtaskRestrictionController.php | 2 | ||||
-rw-r--r-- | app/Controller/SubtaskStatusController.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/Controller/SubtaskRestrictionController.php b/app/Controller/SubtaskRestrictionController.php index 084fc0d9..cb642e1c 100644 --- a/app/Controller/SubtaskRestrictionController.php +++ b/app/Controller/SubtaskRestrictionController.php @@ -27,7 +27,7 @@ class SubtaskRestrictionController extends BaseController SubtaskModel::STATUS_TODO => t('Todo'), SubtaskModel::STATUS_DONE => t('Done'), ), - 'subtask_inprogress' => $this->subtaskModel->getSubtaskInProgress($this->userSession->getId()), + 'subtask_inprogress' => $this->subtaskStatusModel->getSubtaskInProgress($this->userSession->getId()), 'subtask' => $subtask, 'task' => $task, ))); diff --git a/app/Controller/SubtaskStatusController.php b/app/Controller/SubtaskStatusController.php index 699951fe..d4d356c3 100644 --- a/app/Controller/SubtaskStatusController.php +++ b/app/Controller/SubtaskStatusController.php @@ -20,7 +20,7 @@ class SubtaskStatusController extends BaseController $task = $this->getTask(); $subtask = $this->getSubtask(); - $status = $this->subtaskModel->toggleStatus($subtask['id']); + $status = $this->subtaskStatusModel->toggleStatus($subtask['id']); if ($this->request->getIntegerParam('refresh-table') === 0) { $subtask['status'] = $status; |