API - Client : allow edition of client data
This commit is contained in:
parent
957a55852f
commit
0781757a82
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ class ClientApiController extends Controller
|
|||
|
||||
return Response::make($error, 500, $headers);
|
||||
} else {
|
||||
$client = $this->clientRepo->save(false, $data, false);
|
||||
$client = $this->clientRepo->save(isset($data['id']) ? $data['id'] : false, $data, false);
|
||||
$client->load('contacts');
|
||||
$client = Utils::remapPublicIds($client->toArray());
|
||||
$response = json_encode($client, JSON_PRETTY_PRINT);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue