mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Merge pull request #366 from smartandgeek/master
API - Client : Allow updating client data throw API
This commit is contained in:
commit
9afd99b245
@ -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…
x
Reference in New Issue
Block a user