The color is not mandatory for task creation through the API

This commit is contained in:
Frédéric Guillot
2014-09-09 07:13:48 +02:00
parent e383c069f1
commit 0d4b6525dd
4 changed files with 8 additions and 3 deletions

View File

@@ -30,7 +30,7 @@ class Task extends Base
$values = array(
'title' => $this->request->getStringParam('title'),
'description' => $this->request->getStringParam('description'),
'color_id' => $this->request->getStringParam('color_id', 'blue'),
'color_id' => $this->request->getStringParam('color_id'),
'project_id' => $this->request->getIntegerParam('project_id', $defaultProject['id']),
'owner_id' => $this->request->getIntegerParam('owner_id'),
'column_id' => $this->request->getIntegerParam('column_id'),