summaryrefslogtreecommitdiff
path: root/app/Api/ProjectApi.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-06-25 14:34:46 -0400
committerFrederic Guillot <fred@kanboard.net>2016-06-25 14:34:46 -0400
commit922e0fb6de06a98774418612e0b0f75af72b6dbb (patch)
treedff0b7c2c8cd0515b22c8f320cdcf58c47515a98 /app/Api/ProjectApi.php
parentfc93203e4db044d37c1686fef0efb1ac1d6ac4b8 (diff)
Rewrite integration tests to run with Docker containers
Diffstat (limited to 'app/Api/ProjectApi.php')
-rw-r--r--app/Api/ProjectApi.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/Api/ProjectApi.php b/app/Api/ProjectApi.php
index 29a9cd79..a726d4eb 100644
--- a/app/Api/ProjectApi.php
+++ b/app/Api/ProjectApi.php
@@ -73,13 +73,13 @@ class ProjectApi extends BaseApi
return $valid ? $this->projectModel->create($values) : false;
}
- public function updateProject($id, $name, $description = null)
+ public function updateProject($project_id, $name, $description = null)
{
- $values = array(
- 'id' => $id,
+ $values = $this->filterValues(array(
+ 'id' => $project_id,
'name' => $name,
'description' => $description
- );
+ ));
list($valid, ) = $this->projectValidator->validateModification($values);
return $valid && $this->projectModel->update($values);