Merge pull request #22400 from nextcloud/backport/22394/stable19
[stable19] Fix missing FN from federated contact
This commit is contained in:
commit
5cf3c27a03
|
@ -296,7 +296,7 @@ class ShareAPIController extends OCSController {
|
||||||
$result = \OC::$server->getContactsManager()->search($query, [$property]);
|
$result = \OC::$server->getContactsManager()->search($query, [$property]);
|
||||||
foreach ($result as $r) {
|
foreach ($result as $r) {
|
||||||
foreach ($r[$property] as $value) {
|
foreach ($r[$property] as $value) {
|
||||||
if ($value === $query) {
|
if ($value === $query && $r['FN']) {
|
||||||
return $r['FN'];
|
return $r['FN'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue