Prevent creating client without contacts
This commit is contained in:
parent
b32b141f63
commit
d68b13018b
1 changed files with 1 additions and 1 deletions
|
|
@ -116,7 +116,7 @@ class ClientRepository extends BaseRepository
|
|||
*/
|
||||
|
||||
$first = true;
|
||||
$contacts = isset($data['contact']) ? [$data['contact']] : $data['contacts'];
|
||||
$contacts = isset($data['contact']) ? [$data['contact']] : (isset($data['contacts']) ? $data['contacts'] : [[]]);
|
||||
$contactIds = [];
|
||||
|
||||
// If the primary is set ensure it's listed first
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue