mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
API - Client : allow edition of client data
This commit is contained in:
parent
957a55852f
commit
0781757a82
@ -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…
Reference in New Issue
Block a user