diff options
author | blizzz <blizzz@arthur-schiwon.de> | 2020-04-23 22:20:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-23 22:20:58 +0200 |
commit | 038045d55e039262564254c3ac75aaa7965eb200 (patch) | |
tree | bbd802349d83183ea02770180b222e6ce6840708 /lib/private/Collaboration/Collaborators/MailPlugin.php | |
parent | 24e58947d6fba02c3d0ff709213f527411fcec0c (diff) | |
parent | 6709833dc7248fe448b6b809584d9a2e9546af7b (diff) | |
download | nextcloud-server-038045d55e039262564254c3ac75aaa7965eb200.tar.gz nextcloud-server-038045d55e039262564254c3ac75aaa7965eb200.zip |
Merge pull request #18816 from nextcloud/bugfix/noid/paginate-contacts-search
Use paginated search for contacts
Diffstat (limited to 'lib/private/Collaboration/Collaborators/MailPlugin.php')
-rw-r--r-- | lib/private/Collaboration/Collaborators/MailPlugin.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/private/Collaboration/Collaborators/MailPlugin.php b/lib/private/Collaboration/Collaborators/MailPlugin.php index e387e38c6dc..8266ca6794f 100644 --- a/lib/private/Collaboration/Collaborators/MailPlugin.php +++ b/lib/private/Collaboration/Collaborators/MailPlugin.php @@ -81,8 +81,7 @@ class MailPlugin implements ISearchPlugin { $emailType = new SearchResultType('emails'); // Search in contacts - //@todo Pagination missing - $addressBookContacts = $this->contactsManager->search($search, ['EMAIL', 'FN']); + $addressBookContacts = $this->contactsManager->search($search, ['EMAIL', 'FN'], ['limit' => $limit, 'offset' => $offset]); $lowerSearch = strtolower($search); foreach ($addressBookContacts as $contact) { if (isset($contact['EMAIL'])) { |