* 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:05 +00:00
parent b2c275436a
commit e0e4dfc55a

View File

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