When creating calendar from infolog, don't add the currently selected calendar users, just the ones from infolog

This commit is contained in:
Nathan Gray 2011-12-13 17:38:09 +00:00
parent 27b45f92be
commit 3c30791c5c

View File

@ -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');