mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Fixes for search
This commit is contained in:
parent
572451df13
commit
dfc2f9ffe2
@ -65,12 +65,10 @@ class SearchController extends Controller
|
||||
$client->contacts->each(function ($contact) {
|
||||
$this->client_contacts[] = [
|
||||
'name' => $contact->present()->search_display(),
|
||||
'type' => '/client_contact',
|
||||
'id' => $contact->hashed_id,
|
||||
'path' => "/clients/{$contact->hashed_id}"
|
||||
];
|
||||
|
||||
|
||||
'type' => '/client',
|
||||
'id' => $contact->client->hashed_id,
|
||||
'path' => "/clients/{$contact->client->hashed_id}"
|
||||
];
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user