summaryrefslogtreecommitdiff
path: root/app/Controller/SubtaskController.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-07-23 21:14:33 -0400
committerFrederic Guillot <fred@kanboard.net>2016-07-23 21:14:33 -0400
commit2a7ca0405cdafe26578326c12cdd6b072e8d90ae (patch)
tree85bc5c6d79063fefbe47f89840573033dccfdc43 /app/Controller/SubtaskController.php
parent220bc9cdcc483e71d5df629e9c7eb26c562b969f (diff)
Create new class SubtaskPositionModel
Diffstat (limited to 'app/Controller/SubtaskController.php')
-rw-r--r--app/Controller/SubtaskController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Controller/SubtaskController.php b/app/Controller/SubtaskController.php
index 93dab5cd..7502d84f 100644
--- a/app/Controller/SubtaskController.php
+++ b/app/Controller/SubtaskController.php
@@ -168,7 +168,7 @@ class SubtaskController extends BaseController
$values = $this->request->getJson();
if (! empty($values) && $this->helper->user->hasProjectAccess('SubtaskController', 'movePosition', $project_id)) {
- $result = $this->subtaskModel->changePosition($task_id, $values['subtask_id'], $values['position']);
+ $result = $this->subtaskPositionModel->changePosition($task_id, $values['subtask_id'], $values['position']);
$this->response->json(array('result' => $result));
} else {
throw new AccessForbiddenException();