Add name field to mail and remote results
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
f116461d4b
commit
cb463d73d5
2 changed files with 6 additions and 0 deletions
|
@ -127,6 +127,7 @@ class MailPlugin implements ISearchPlugin {
|
|||
$singleResult = [[
|
||||
'label' => $displayName,
|
||||
'uuid' => $contact['UID'],
|
||||
'name' => $contact['FN'],
|
||||
'value' => [
|
||||
'shareType' => Share::SHARE_TYPE_USER,
|
||||
'shareWith' => $cloud->getUser(),
|
||||
|
@ -149,6 +150,7 @@ class MailPlugin implements ISearchPlugin {
|
|||
$userResults['wide'][] = [
|
||||
'label' => $displayName,
|
||||
'uuid' => $contact['UID'],
|
||||
'name' => $contact['FN'],
|
||||
'value' => [
|
||||
'shareType' => Share::SHARE_TYPE_USER,
|
||||
'shareWith' => $cloud->getUser(),
|
||||
|
@ -168,6 +170,7 @@ class MailPlugin implements ISearchPlugin {
|
|||
$result['exact'][] = [
|
||||
'label' => $displayName,
|
||||
'uuid' => $contact['UID'],
|
||||
'name' => $contact['FN'],
|
||||
'type' => $emailAddressType,
|
||||
'value' => [
|
||||
'shareType' => Share::SHARE_TYPE_EMAIL,
|
||||
|
@ -178,6 +181,7 @@ class MailPlugin implements ISearchPlugin {
|
|||
$result['wide'][] = [
|
||||
'label' => $displayName,
|
||||
'uuid' => $contact['UID'],
|
||||
'name' => $contact['FN'],
|
||||
'type' => $emailAddressType,
|
||||
'value' => [
|
||||
'shareType' => Share::SHARE_TYPE_EMAIL,
|
||||
|
|
|
@ -109,6 +109,7 @@ class RemotePlugin implements ISearchPlugin {
|
|||
$result['exact'][] = [
|
||||
'label' => $contact['FN'] . " ($cloudId)",
|
||||
'uuid' => $contact['UID'],
|
||||
'name' => $contact['FN'],
|
||||
'type' => $cloudIdType,
|
||||
'value' => [
|
||||
'shareType' => Share::SHARE_TYPE_REMOTE,
|
||||
|
@ -120,6 +121,7 @@ class RemotePlugin implements ISearchPlugin {
|
|||
$result['wide'][] = [
|
||||
'label' => $contact['FN'] . " ($cloudId)",
|
||||
'uuid' => $contact['UID'],
|
||||
'name' => $contact['FN'],
|
||||
'type' => $cloudIdType,
|
||||
'value' => [
|
||||
'shareType' => Share::SHARE_TYPE_REMOTE,
|
||||
|
|
Loading…
Reference in a new issue