mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
commit
76f5ef92f7
@ -100,6 +100,10 @@ class ClientRepository extends BaseRepository
|
|||||||
$contacts = isset($data['contact']) ? [$data['contact']] : $data['contacts'];
|
$contacts = isset($data['contact']) ? [$data['contact']] : $data['contacts'];
|
||||||
$contactIds = [];
|
$contactIds = [];
|
||||||
|
|
||||||
|
usort($contacts, function ($left, $right) {
|
||||||
|
return $right['is_primary'] - $left['is_primary'];
|
||||||
|
});
|
||||||
|
|
||||||
foreach ($contacts as $contact) {
|
foreach ($contacts as $contact) {
|
||||||
$contact = $client->addContact($contact, $first);
|
$contact = $client->addContact($contact, $first);
|
||||||
$contactIds[] = $contact->public_id;
|
$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…
x
Reference in New Issue
Block a user