"adding importing user to an event newly imported via iCal: without that an iCal which did not contain the eGroupware mail address of the user will be inaccessible"

This commit is contained in:
Ralf Becker 2008-11-14 07:39:36 +00:00
parent 8991124ced
commit 6498abb3e3

View File

@ -927,9 +927,10 @@ class calendar_ical extends calendar_boupdate
} }
// add ourself to new events as participant // add ourself to new events as participant
if($cal_id == -1 && !isset($this->supportedFields['participants'])) if ($cal_id == -1 && (!isset($this->supportedFields['participants']) ||
!isset($event['participants'][$GLOBALS['egw_info']['user']['account_id']])))
{ {
$event['participants'] = array($GLOBALS['egw_info']['user']['account_id'] => 'A'); $event['participants'][$GLOBALS['egw_info']['user']['account_id']] = 'A';
} }
// If this is an updated meeting, and the client doesn't support // If this is an updated meeting, and the client doesn't support