From d8ce9fcb87683835bd7ac5ec5113cdda9b528d40 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 20 Feb 2014 13:53:22 +0000 Subject: [PATCH] * CardDAV/Addressbook: add "None" to forced preferences of addressbooks to sync in addition to personal one --- addressbook/inc/class.addressbook_groupdav.inc.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/addressbook/inc/class.addressbook_groupdav.inc.php b/addressbook/inc/class.addressbook_groupdav.inc.php index ce3f9493d6..be691aaf74 100644 --- a/addressbook/inc/class.addressbook_groupdav.inc.php +++ b/addressbook/inc/class.addressbook_groupdav.inc.php @@ -1092,6 +1092,12 @@ class addressbook_groupdav extends groupdav_handler 'D' => lang('Distribution lists as groups') ) + $addressbooks; + // allow to force no other addressbooks + if ($GLOBALS['type'] === 'forced') + { + $addressbooks['N'] = lang('None'); + } + // rewriting owner=0 to 'U', as 0 get's always selected by prefs if (!isset($addressbooks[0])) {