diff options
Diffstat (limited to 'controllers/task.php')
-rw-r--r-- | controllers/task.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/controllers/task.php b/controllers/task.php index 16075ec2..9065c576 100644 --- a/controllers/task.php +++ b/controllers/task.php @@ -25,8 +25,7 @@ class Task extends Base $this->response->text('Not Authorized', 401); } - $projectModel = new \Model\Project; - $defaultProject = $projectModel->getFirst(); + $defaultProject = $this->project->getFirst(); $values = array( 'title' => $this->request->getStringParam('title'), @@ -38,8 +37,7 @@ class Task extends Base ); if ($values['column_id'] == 0) { - $boardModel = new \Model\Board; - $values['column_id'] = $boardModel->getFirstColumn($values['project_id']); + $values['column_id'] = $this->board->getFirstColumn($values['project_id']); } list($valid,) = $this->task->validateCreation($values); |