mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-18 07:52:21 +01:00
Implement getSearchProvidder
This commit is contained in:
parent
4e75a00bb5
commit
11eef60a55
@ -64,7 +64,8 @@ if (\OCP\User::isLoggedIn()) {
|
||||
$addressBooks = $app->getAddressBooksForUser();
|
||||
foreach ($addressBooks as $addressBook) {
|
||||
if ($addressBook->isActive()) {
|
||||
\OCP\Contacts::registerAddressBook(new AddressbookProvider($addressBook));
|
||||
// $addressBook is instance of \OCA\Contacts\Addressbook
|
||||
\OCP\Contacts::registerAddressBook($addressBook->getSearchProvider($addressBook));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -482,4 +482,8 @@ class Addressbook extends AbstractPIMCollection {
|
||||
|
||||
return $events;
|
||||
}
|
||||
|
||||
public function getSearchProvider($addressbook){
|
||||
return $this->backend->getSearchProvider($addressbook);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user