* CalDAV/CardDAV: allow removing categories

This commit is contained in:
Ralf Becker 2019-05-28 18:47:55 +02:00
parent dad227865d
commit a3a9761372
3 changed files with 3 additions and 3 deletions

View File

@ -628,7 +628,7 @@ class addressbook_groupdav extends Api\CalDAV\Handler
}
elseif ($contactId > 0)
{
$contact['cat_id'] = $oldContact['cat_id'];
$contact['cat_id'] = null;
}
if (is_array($oldContact))
{

View File

@ -1333,7 +1333,7 @@ class calendar_ical extends calendar_boupdate
else
{
// no merge
if(!isset($this->supportedFields['category']) || !isset($event['category']))
if(!isset($this->supportedFields['category']))
{
$event['category'] = $event_info['stored_event']['category'];
}

View File

@ -694,7 +694,7 @@ class infolog_ical extends infolog_bo
continue;
}
$taskData = array();
$taskData = array('info_cat' => $_taskID ? 0 : $GLOBALS['egw_info']['user']['preferences']['infolog']['cat_add_default']);
if ($_taskID > 0)
{