]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add tel, note, org and title search 24697/head
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Mon, 7 Dec 2020 14:03:10 +0000 (15:03 +0100)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Mon, 14 Dec 2020 16:41:55 +0000 (16:41 +0000)
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
apps/dav/lib/Search/ContactsSearchProvider.php
apps/dav/tests/unit/Search/ContactsSearchProviderTest.php

index a76e1f7fefd014780c7cfb23437d7e69b2e425f2..d92226aa1b1a29ccb6158403fd3d3cc92ba177dd 100644 (file)
@@ -61,7 +61,11 @@ class ContactsSearchProvider implements IProvider {
                'FN',
                'NICKNAME',
                'EMAIL',
+               'TEL',
                'ADR',
+               'TITLE',
+               'ORG',
+               'NOTE',
        ];
 
        /**
index 640ada0a9dffbb6bd1134e708f6cfbfa2bc1a550..7e9fc6d9a498ee910151dc1b60cc9f3293a8d214 100644 (file)
@@ -160,7 +160,17 @@ class ContactsSearchProviderTest extends TestCase {
                $this->backend->expects($this->once())
                        ->method('searchPrincipalUri')
                        ->with('principals/users/john.doe', 'search term',
-                               ['N', 'FN', 'NICKNAME', 'EMAIL', 'ADR'],
+                               [
+                                       'N',
+                                       'FN',
+                                       'NICKNAME',
+                                       'EMAIL',
+                                       'TEL',
+                                       'ADR',
+                                       'TITLE',
+                                       'ORG',
+                                       'NOTE',
+                               ],
                                ['limit' => 5, 'offset' => 20])
                        ->willReturn([
                                [