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

Bug Fixed

This commit is contained in:
David Bomba 2016-01-27 07:52:30 +11:00
parent f80e738882
commit c2bb8711a0

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();