mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 14:34:34 -04:00
If not contacts array is passed, do no attempt to modify / save contacts
This commit is contained in:
parent
3a95441c1c
commit
df6e9bc9b8
@ -102,6 +102,7 @@ class ClientRepository extends BaseRepository
|
||||
$data['name'] = $client->present()->name();
|
||||
}
|
||||
|
||||
if(array_key_exists('contacts', $contact_data))
|
||||
$this->contact_repo->save($contact_data, $client);
|
||||
|
||||
return $client;
|
||||
|
Loading…
x
Reference in New Issue
Block a user