fix: [api] editing organisation attributes, other than name

pull/3980/head
Jan Skalny 2019-01-02 12:38:59 +01:00
parent 0fc475ed48
commit 19163c5f67
1 changed files with 1 additions and 1 deletions

View File

@ -171,8 +171,8 @@ class OrganisationsController extends AppController
} else {
$temp['Organisation'][$field] = $existingOrg['Organisation'][$field];
}
$this->request->data = $temp;
}
$this->request->data = $temp;
}
$this->request->data['Organisation']['id'] = $id;
if ($this->Organisation->save($this->request->data)) {