From e0e4dfc55a17f7c0e783b6a8b1db3c3894a5b513 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 20 Feb 2014 13:53:05 +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 c8c5573917..818e029dd0 100644 --- a/addressbook/inc/class.addressbook_groupdav.inc.php +++ b/addressbook/inc/class.addressbook_groupdav.inc.php @@ -1085,6 +1085,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])) {