1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-12 14:12:44 +01:00

Merge pull request #657 from turbo124/master

Bug Fixes
This commit is contained in:
David Bomba 2016-01-27 07:53:22 +11:00
commit 4f5dd12ea0

View File

@ -131,11 +131,13 @@ class ClientApiController extends BaseAPIController
* )
*/
public function update(UpdateClientRequest $request)
public function update(UpdateClientRequest $request, $publicId)
{
$client = $this->clientService->save($request->input());
$data = $request->input();
$data['public_id'] = $publicId;
$this->clientService->save($data);
$client = Client::scope($client->public_id)
$client = Client::scope($publicId)
->with('country', 'contacts', 'industry', 'size', 'currency')
->first();