Fixes for search

This commit is contained in:
David Bomba 2023-11-26 20:45:40 +11:00
parent 572451df13
commit dfc2f9ffe2

View File

@ -65,12 +65,10 @@ class SearchController extends Controller
$client->contacts->each(function ($contact) { $client->contacts->each(function ($contact) {
$this->client_contacts[] = [ $this->client_contacts[] = [
'name' => $contact->present()->search_display(), 'name' => $contact->present()->search_display(),
'type' => '/client_contact', 'type' => '/client',
'id' => $contact->hashed_id, 'id' => $contact->client->hashed_id,
'path' => "/clients/{$contact->hashed_id}" 'path' => "/clients/{$contact->client->hashed_id}"
]; ];
}); });
} }