* CardDAV/Addressbook: add "None" to forced preferences of addressbooks to sync in addition to personal one

This commit is contained in:
Ralf Becker 2014-02-20 13:53:22 +00:00
parent d7d02c919f
commit d8ce9fcb87

View File

@ -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]))
{