From 5c8bf4ec27414695e63203d190fc8571d2c8ec9d Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 14 Dec 2011 15:45:54 +0000 Subject: [PATCH] - Fix infolog linked contact -> participant - Add infolog main link to calendar entry --- calendar/inc/class.calendar_uiforms.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/calendar/inc/class.calendar_uiforms.inc.php b/calendar/inc/class.calendar_uiforms.inc.php index cf3ddcc273..6bc910e81b 100644 --- a/calendar/inc/class.calendar_uiforms.inc.php +++ b/calendar/inc/class.calendar_uiforms.inc.php @@ -1240,13 +1240,16 @@ class calendar_uiforms extends calendar_ui if($infolog['info_link']['app'] == 'addressbook') { $event['participants'][calendar_so::combine_user('c',$infolog['info_link']['id'])] = calendar_so::combine_status('U'); - $event['participant_types']['c'][$responsible] = 'U'; + $event['participant_types']['c'][$infolog['info_link']['id']] = 'U'; } + // Add infolog link to calendar entry + egw_link::link('calendar',$link_to_id,$infolog['info_link']['app'],$infolog['info_link']['id']); break; default: $event['title'] = egw_link::title($link_app,$link_id); } + // Copy same custom fields $cal_cfs = config::get_customfields('calendar'); $link_app_cfs = config::get_customfields($link_app);