mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-08-07 10:01:47 -04:00
contacts array sorter
This commit is contained in:
parent
b49938e36d
commit
b022ae0c77
@ -100,7 +100,7 @@ class ClientRepository extends BaseRepository
|
||||
$contacts = isset($data['contact']) ? [$data['contact']] : $data['contacts'];
|
||||
$contactIds = [];
|
||||
|
||||
$contacts = usort($contacts, function ($left, $right) {
|
||||
usort($contacts, function ($left, $right) {
|
||||
return $left['priority'] - $right['priority'];
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user