mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Return early if no client present in the repository
This commit is contained in:
parent
ff6f3fc89c
commit
d9961bb529
@ -176,7 +176,7 @@ class BaseRepository
|
||||
if(array_key_exists('client_id', $data))
|
||||
$model->client_id = $data['client_id'];
|
||||
|
||||
$client = Client::where('id', $model->client_id)->withTrashed()->first();
|
||||
$client = Client::where('id', $model->client_id)->withTrashed()->firstOrFail();
|
||||
|
||||
$state = [];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user