From 3c30791c5cb4ee36d3a5584568407b1ad2732f9a Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 13 Dec 2011 17:38:09 +0000 Subject: [PATCH] When creating calendar from infolog, don't add the currently selected calendar users, just the ones from infolog --- calendar/inc/class.calendar_uiforms.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/calendar/inc/class.calendar_uiforms.inc.php b/calendar/inc/class.calendar_uiforms.inc.php index 324cd20816..cf3ddcc273 100644 --- a/calendar/inc/class.calendar_uiforms.inc.php +++ b/calendar/inc/class.calendar_uiforms.inc.php @@ -1228,6 +1228,9 @@ class calendar_uiforms extends calendar_ui 'start' => $infolog['info_startdate'], 'end' => $infolog['info_enddate'] )); + // Only add current user, not all selected calendar users + $event['participants'] = array(calendar_so::combine_user('u',$event['owner']) => 'ACHAIR'); + $event['participant_types'] = array('u' => array($event['owner']=>'ACHAIR')); // Add responsible as participant foreach($infolog['info_responsible'] as $responsible) { $event['participants'][calendar_so::combine_user('u',$responsible)] = calendar_so::combine_status('U');