Skip to content
Snippets Groups Projects
Unverified Commit 1f823741 authored by John Molakvoæ's avatar John Molakvoæ Committed by GitHub
Browse files

Merge pull request #24589 from nextcloud/fix/search-dav

Add tel, note, org and title search 
parents b56d7f9f 45b3ddd8
No related branches found
No related tags found
No related merge requests found
...@@ -61,7 +61,11 @@ class ContactsSearchProvider implements IProvider { ...@@ -61,7 +61,11 @@ class ContactsSearchProvider implements IProvider {
'FN', 'FN',
'NICKNAME', 'NICKNAME',
'EMAIL', 'EMAIL',
'TEL',
'ADR', 'ADR',
'TITLE',
'ORG',
'NOTE',
]; ];
/** /**
......
...@@ -160,7 +160,17 @@ class ContactsSearchProviderTest extends TestCase { ...@@ -160,7 +160,17 @@ class ContactsSearchProviderTest extends TestCase {
$this->backend->expects($this->once()) $this->backend->expects($this->once())
->method('searchPrincipalUri') ->method('searchPrincipalUri')
->with('principals/users/john.doe', 'search term', ->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]) ['limit' => 5, 'offset' => 20])
->willReturn([ ->willReturn([
[ [
......
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