Add mandatory argument "project_id" to API method "updateSwimlane()"

This commit is contained in:
Frederic Guillot
2017-02-18 10:11:07 -05:00
parent de128dbad8
commit 948b7fbaaa
7 changed files with 30 additions and 11 deletions

View File

@@ -125,7 +125,7 @@ class SwimlaneController extends BaseController
list($valid, $errors) = $this->swimlaneValidator->validateModification($values);
if ($valid) {
if ($this->swimlaneModel->update($values)) {
if ($this->swimlaneModel->update($values['id'], $values)) {
$this->flash->success(t('Swimlane updated successfully.'));
return $this->response->redirect($this->helper->url->to('SwimlaneController', 'index', array('project_id' => $project['id'])));
} else {