diff --git a/calendar/inc/class.calendar_uilist.inc.php b/calendar/inc/class.calendar_uilist.inc.php index aeaf46e4c4..cb3899eed5 100644 --- a/calendar/inc/class.calendar_uilist.inc.php +++ b/calendar/inc/class.calendar_uilist.inc.php @@ -494,6 +494,21 @@ class calendar_uilist extends calendar_ui 'cat_id' => null, 'pl_id' => null ); + + // Add global categories + $categories = explode(',',$event['category']); + $global_categories = array(); + foreach($categories as $cat_id) + { + if($GLOBALS['egw']->categories->is_global($cat_id)) + { + $global_categories[] = $cat_id; + } + } + if(count($global_categories)) + { + $timesheet['cat_id'] = implode(',', $global_categories); + } $timesheet_bo->data = array(); $err = $timesheet_bo->save($timesheet); if(!$err) {