mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-04 04:19:41 +01:00
"Patch from Phillip Herbert from Knauber to support Nokia X-EPOCAGENDAENTRYTYPE' = 'EVENT'"
This commit is contained in:
parent
e3b9117d4f
commit
93ec854bf6
@ -370,6 +370,9 @@ class calendar_ical extends calendar_boupdate
|
|||||||
if($event['special'] == '1') {
|
if($event['special'] == '1') {
|
||||||
$attributes['X-EPOCAGENDAENTRYTYPE'] = 'ANNIVERSARY';
|
$attributes['X-EPOCAGENDAENTRYTYPE'] = 'ANNIVERSARY';
|
||||||
$attributes['DTEND'] = $attributes['DTSTART'];
|
$attributes['DTEND'] = $attributes['DTSTART'];
|
||||||
|
}
|
||||||
|
elseif ($event['special'] == '2') {
|
||||||
|
$attributes['X-EPOCAGENDAENTRYTYPE'] = 'EVENT';
|
||||||
} else {
|
} else {
|
||||||
$attributes['X-EPOCAGENDAENTRYTYPE'] = 'APPOINTMENT';
|
$attributes['X-EPOCAGENDAENTRYTYPE'] = 'APPOINTMENT';
|
||||||
}
|
}
|
||||||
@ -835,8 +838,13 @@ class calendar_ical extends calendar_boupdate
|
|||||||
if (!is_a($agendaEntryType, 'PEAR_Error')) {
|
if (!is_a($agendaEntryType, 'PEAR_Error')) {
|
||||||
if(strtolower($agendaEntryType) == 'anniversary') {
|
if(strtolower($agendaEntryType) == 'anniversary') {
|
||||||
$event['special'] = '1';
|
$event['special'] = '1';
|
||||||
|
$event['non_blocking'] = '1';
|
||||||
// make it a whole day event for eGW
|
// make it a whole day event for eGW
|
||||||
$vcardData['end'] = $vcardData['start'] + 86399;
|
$vcardData['end'] = $vcardData['start'] + 86399;
|
||||||
|
}
|
||||||
|
elseif(strtolower($agendaEntryType) == 'event') {
|
||||||
|
$event['special'] = '2';
|
||||||
|
$event['non_blocking'] = '1';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1243,6 +1251,7 @@ class calendar_ical extends calendar_boupdate
|
|||||||
$vcardData['end'] = $attributes['value'];
|
$vcardData['end'] = $attributes['value'];
|
||||||
break;
|
break;
|
||||||
case 'DTSTART':
|
case 'DTSTART':
|
||||||
|
//error_log (" CALENDAR ROBV DTSTART: ". $attributes['value']);
|
||||||
$vcardData['start'] = $attributes['value'];
|
$vcardData['start'] = $attributes['value'];
|
||||||
break;
|
break;
|
||||||
case 'LOCATION':
|
case 'LOCATION':
|
||||||
|
Loading…
Reference in New Issue
Block a user