mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-16 13:44:37 -04:00
Bug Fixed
This commit is contained in:
parent
f80e738882
commit
c2bb8711a0
@ -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')
|
->with('country', 'contacts', 'industry', 'size', 'currency')
|
||||||
->first();
|
->first();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user