mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:18 +01:00
also add extended (textual) information, if ical is selected for notifications
This commit is contained in:
parent
e1e712c9fb
commit
fe6c8fd226
@ -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']) {
|
||||
|
Loading…
Reference in New Issue
Block a user