Skip to content

Commit

Permalink
add carddav-search option for X-ADDRESSBOOKSERVER-MEMBER
Browse files Browse the repository at this point in the history
Adding field X-ADDRESSBOOKSERVER-MEMBER
which can be used to relate persons to groups (macos behaviour).

- groups are cards with field X-ADDRESSBOOKSERVER-KIND == 'group'
- and all members' UUID/URI in the X-ADDRESSBOOKSERVER-MEMBER array of that group-card.

Signed-off-by: labor4 <schreibtisch@labor4.ch>
  • Loading branch information
labor4 authored and skjnldsv committed Jun 7, 2019
1 parent b968987 commit ee0e1c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/dav/lib/CardDAV/AddressBookImpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ protected function vCard2Array($uri, VCard $vCard, $withTypes = false) {
}

// The following properties can be set multiple times
} else if (in_array($property->name, ['CLOUD', 'EMAIL', 'IMPP', 'TEL', 'URL'])) {
} else if (in_array($property->name, ['CLOUD', 'EMAIL', 'IMPP', 'TEL', 'URL', 'X-ADDRESSBOOKSERVER-MEMBER'])) {
if (!isset($result[$property->name])) {
$result[$property->name] = [];
}
Expand Down

0 comments on commit ee0e1c4

Please sign in to comment.