mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
commit
76f5ef92f7
@ -100,6 +100,10 @@ class ClientRepository extends BaseRepository
|
||||
$contacts = isset($data['contact']) ? [$data['contact']] : $data['contacts'];
|
||||
$contactIds = [];
|
||||
|
||||
usort($contacts, function ($left, $right) {
|
||||
return $right['is_primary'] - $left['is_primary'];
|
||||
});
|
||||
|
||||
foreach ($contacts as $contact) {
|
||||
$contact = $client->addContact($contact, $first);
|
||||
$contactIds[] = $contact->public_id;
|
||||
|
0
storage/templates/bold.js
Normal file → Executable file
0
storage/templates/bold.js
Normal file → Executable file
0
storage/templates/clean.js
Normal file → Executable file
0
storage/templates/clean.js
Normal file → Executable file
0
storage/templates/modern.js
Normal file → Executable file
0
storage/templates/modern.js
Normal file → Executable file
0
storage/templates/plain.js
Normal file → Executable file
0
storage/templates/plain.js
Normal file → Executable file
Loading…
Reference in New Issue
Block a user