forked from extern/egroupware
fix Scrutinizer "bugs"
This commit is contained in:
parent
4b75ed5e7f
commit
7f3038f07e
@ -637,11 +637,13 @@ class infolog_groupdav extends Api\CalDAV\Handler
|
|||||||
if (!Api\Categories::is_global($task['info_cat']))
|
if (!Api\Categories::is_global($task['info_cat']))
|
||||||
{
|
{
|
||||||
$cat_obj = new Api\Categories(Api\Categories::GLOBAL_ACCOUNT, 'infolog');
|
$cat_obj = new Api\Categories(Api\Categories::GLOBAL_ACCOUNT, 'infolog');
|
||||||
$cat = Api\Categories::read($task['info_cat']);
|
if (($cat = Api\Categories::read($task['info_cat'])))
|
||||||
|
{
|
||||||
$cat['owner'] = Api\Categories::GLOBAL_ACCOUNT;
|
$cat['owner'] = Api\Categories::GLOBAL_ACCOUNT;
|
||||||
$cat['access'] = 'public';
|
$cat['access'] = 'public';
|
||||||
$cat_obj->edit($cat);
|
$cat_obj->edit($cat);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// if replace, remove user of old category from responsible
|
// if replace, remove user of old category from responsible
|
||||||
if ($action == 'replace' && $oldTask && $oldTask['info_cat'] &&
|
if ($action == 'replace' && $oldTask && $oldTask['info_cat'] &&
|
||||||
($old_cat = Api\Categories::id2name($oldTask['info_cat'])) && strpos($old_cat, '@') !== false &&
|
($old_cat = Api\Categories::id2name($oldTask['info_cat'])) && strpos($old_cat, '@') !== false &&
|
||||||
|
Loading…
Reference in New Issue
Block a user