mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 08:34:42 +01:00
Fix infolog category issue
This commit is contained in:
parent
d6da8d8980
commit
fda9c4f5f0
@ -669,6 +669,7 @@ class infolog_bo
|
||||
$values['info_modifier'] = $this->so->user;
|
||||
}
|
||||
//_debug_array($values);
|
||||
// error_log(__FILE__.'['.__LINE__.'] '.__METHOD__."()\n".array2string($values)."\n",3,'/tmp/infolog');
|
||||
$to_write = $values;
|
||||
if ($status_only && !$undelete) $values = array_merge($backup_values,$values);
|
||||
// convert user- to system-time
|
||||
@ -1099,7 +1100,7 @@ class infolog_bo
|
||||
{
|
||||
foreach($old_categories as $cat_id)
|
||||
{
|
||||
if(!$this->categories->check_perms(EGW_ACL_READ, $cat_id))
|
||||
if($cat_id && !$this->categories->check_perms(EGW_ACL_READ, $cat_id))
|
||||
{
|
||||
$old_cats_preserve[] = $cat_id;
|
||||
}
|
||||
|
@ -403,8 +403,18 @@ class infolog_ical extends infolog_bo
|
||||
break;
|
||||
|
||||
case 'CATEGORIES':
|
||||
$cats = $this->find_or_add_categories(explode(',', $attributes['value']), $_taskID);
|
||||
$taskData['info_cat'] = $cats[0];
|
||||
if ($attributes['value'])
|
||||
{
|
||||
if($version == '1.0')
|
||||
{
|
||||
$vcats = $this->find_or_add_categories(explode(';',$attributes['value']), $_taskID);
|
||||
}
|
||||
else
|
||||
{
|
||||
$cats = $this->find_or_add_categories(explode(',',$attributes['value']), $_taskID);
|
||||
}
|
||||
$taskData['info_cat'] = $cats[0];
|
||||
}
|
||||
break;
|
||||
|
||||
case 'UID':
|
||||
|
Loading…
Reference in New Issue
Block a user