1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Merge pull request #811 from turbo124/develop

Sort Contacts
This commit is contained in:
David Bomba 2016-04-17 20:54:55 +10:00
commit 76f5ef92f7
5 changed files with 4 additions and 0 deletions

View File

@ -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
View File

0
storage/templates/clean.js Normal file → Executable file
View File

0
storage/templates/modern.js Normal file → Executable file
View File

0
storage/templates/plain.js Normal file → Executable file
View File