Skip to content
Snippets Groups Projects
Commit 0330481c authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #8263 from LEDfan/add-key-to-contacts

Add key to every contact
parents d56072cf efff7dd2
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment