Create new class SubtaskPositionModel

This commit is contained in:
Frederic Guillot
2016-07-23 21:14:33 -04:00
parent 220bc9cdcc
commit 2a7ca0405c
7 changed files with 127 additions and 99 deletions

View File

@@ -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();