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

@@ -116,7 +116,7 @@ $server->register('allowUser', function($project_id, $user_id) use ($project) {
/**
* Task procedures
*/
$server->register('createTask', function($title, $project_id, $color_id, $column_id, $owner_id = 0, $creator_id = 0, $date_due = '', $description = '', $category_id = 0, $score = 0) use ($task) {
$server->register('createTask', function($title, $project_id, $color_id = '', $column_id = 0, $owner_id = 0, $creator_id = 0, $date_due = '', $description = '', $category_id = 0, $score = 0) use ($task) {
$values = array(
'title' => $title,