mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-21 10:27:52 +02: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'])
|
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";
|
$body .= "\n\n".lang('Event Details follow').":\n";
|
||||||
foreach($event_arr as $key => $val)
|
foreach($event_arr as $key => $val)
|
||||||
{
|
{
|
||||||
@ -577,18 +588,6 @@ class calendar_boupdate extends calendar_bo
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
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
|
// send via notification_app
|
||||||
if($GLOBALS['egw_info']['apps']['notifications']['enabled']) {
|
if($GLOBALS['egw_info']['apps']['notifications']['enabled']) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user