From ee0e1c49467f1d0b5f186d083030063da23865b0 Mon Sep 17 00:00:00 2001 From: labor4 Date: Thu, 20 Dec 2018 21:51:48 +0100 Subject: [PATCH] add carddav-search option for X-ADDRESSBOOKSERVER-MEMBER 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 --- apps/dav/lib/CardDAV/AddressBookImpl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dav/lib/CardDAV/AddressBookImpl.php b/apps/dav/lib/CardDAV/AddressBookImpl.php index ae727b8544..351e064595 100644 --- a/apps/dav/lib/CardDAV/AddressBookImpl.php +++ b/apps/dav/lib/CardDAV/AddressBookImpl.php @@ -269,7 +269,7 @@ class AddressBookImpl implements IAddressBook { } // 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] = []; }