mirror of
https://github.com/nextcloud/server.git
synced 2024-07-26 06:14:59 +02:00
Add key to every contact
This commit is contained in:
parent
d23c4697d0
commit
b78c1373b6
@ -37,7 +37,12 @@ namespace OC {
|
|||||||
$result = array();
|
$result = array();
|
||||||
foreach($this->address_books as $address_book) {
|
foreach($this->address_books as $address_book) {
|
||||||
$r = $address_book->search($pattern, $searchProperties, $options);
|
$r = $address_book->search($pattern, $searchProperties, $options);
|
||||||
$result = array_merge($result, $r);
|
$contacts = array();
|
||||||
|
foreach($r as $c){
|
||||||
|
$c['key'] = $address_book->getKey();
|
||||||
|
$contacts[] = $c;
|
||||||
|
}
|
||||||
|
$result = array_merge($result, $contacts);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
|
Loading…
Reference in New Issue
Block a user