mirror da
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();
|
||||
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['key'] = $address_book->getKey();
|
||||
$contacts[] = $c;
|
||||
}
|
||||
$result = array_merge($result, $contacts);
|
||||
}
|
||||
|
||||
return $result;
|
||||
|
Caricamento…
Fai riferimento in un nuovo problema
Block a user