mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #8263 from LEDfan/add-key-to-contacts
Add key to every contact
This commit is contained in:
commit
0330481c5e
1 changed files with 6 additions and 1 deletions
|
|
@ -37,7 +37,12 @@ namespace OC {
|
|||
$result = array();
|
||||
foreach($this->address_books as $address_book) {
|
||||
$r = $address_book->search($pattern, $searchProperties, $options);
|
||||
$result = array_merge($result, $r);
|
||||
$contacts = array();
|
||||
foreach($r as $c){
|
||||
$c['addressbook-key'] = $address_book->getKey();
|
||||
$contacts[] = $c;
|
||||
}
|
||||
$result = array_merge($result, $contacts);
|
||||
}
|
||||
|
||||
return $result;
|
||||
|
|
|
|||
Loading…
Reference in a new issue