diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-06-25 14:34:46 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-06-25 14:34:46 -0400 |
commit | 922e0fb6de06a98774418612e0b0f75af72b6dbb (patch) | |
tree | dff0b7c2c8cd0515b22c8f320cdcf58c47515a98 /app/Api/TaskApi.php | |
parent | fc93203e4db044d37c1686fef0efb1ac1d6ac4b8 (diff) |
Rewrite integration tests to run with Docker containers
Diffstat (limited to 'app/Api/TaskApi.php')
-rw-r--r-- | app/Api/TaskApi.php | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/app/Api/TaskApi.php b/app/Api/TaskApi.php index ddb3ac54..523bfaa0 100644 --- a/app/Api/TaskApi.php +++ b/app/Api/TaskApi.php @@ -139,7 +139,7 @@ class TaskApi extends BaseApi return false; } - $values = array( + $values = $this->filterValues(array( 'id' => $id, 'title' => $title, 'color_id' => $color_id, @@ -155,13 +155,7 @@ class TaskApi extends BaseApi 'recurrence_basedate' => $recurrence_basedate, 'reference' => $reference, 'priority' => $priority, - ); - - foreach ($values as $key => $value) { - if (is_null($value)) { - unset($values[$key]); - } - } + )); list($valid) = $this->taskValidator->validateApiModification($values); return $valid && $this->taskModificationModel->update($values); |