diff options
author | Frédéric Guillot <fguillot@users.noreply.github.com> | 2014-05-03 08:08:47 -0400 |
---|---|---|
committer | Frédéric Guillot <fguillot@users.noreply.github.com> | 2014-05-03 08:08:47 -0400 |
commit | e2d658b396d8bd1f60261924c05a0c6481647c14 (patch) | |
tree | 119854805bd3a13db053a9ffb23ebb1b95f6b5bd /controllers/task.php | |
parent | 6c229a2561486bba9f372019b69cf82371f8d6ea (diff) |
Fix bug task creation webhook
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); |