also add extended (textual) information, if ical is selected for notifications

This commit is contained in:
Ralf Becker 2009-10-18 12:46:18 +00:00
parent e1e712c9fb
commit fe6c8fd226

View File

@ -560,7 +560,18 @@ class calendar_boupdate extends calendar_bo
switch($part_prefs['calendar']['update_format'])
{
case 'extended':
case 'ical':
if ($method == 'REQUEST')
{
$ics = ExecMethod2('calendar.calendar_ical.exportVCal',$event['id'],'2.0',$method);
$attachment = array( 'string' => $ics,
'filename' => 'cal.ics',
'encoding' => '8bit',
'type' => 'text/calendar; method='.$method,
);
}
// fall through
case 'extended':
$body .= "\n\n".lang('Event Details follow').":\n";
foreach($event_arr as $key => $val)
{
@ -577,18 +588,6 @@ class calendar_boupdate extends calendar_bo
}
}
break;
case 'ical':
$ics = ExecMethod2('calendar.calendar_ical.exportVCal',$event['id'],'2.0',$method);
if ($method == 'REQUEST')
{
$attachment = array( 'string' => $ics,
'filename' => 'cal.ics',
'encoding' => '8bit',
'type' => 'text/calendar; method='.$method,
);
}
break;
}
// send via notification_app
if($GLOBALS['egw_info']['apps']['notifications']['enabled']) {