mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
* CalDAV: fix not parsed recurrence exceptions
caused by newer Horde Icalendar class always importing them as date
This commit is contained in:
parent
c4f048bbae
commit
3cc0012c77
@ -2781,11 +2781,8 @@ class calendar_ical extends calendar_boupdate
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case 'EXDATE':
|
||||
if (!$attributes['value']) break;
|
||||
if ((isset($attributes['params']['VALUE'])
|
||||
&& $attributes['params']['VALUE'] == 'DATE') ||
|
||||
(!isset($attributes['params']['VALUE']) && $isDate))
|
||||
case 'EXDATE': // current Horde_Icalendar returns dates, no timestamps
|
||||
if ($attributes['values'])
|
||||
{
|
||||
$days = array();
|
||||
$hour = date('H', $vcardData['start']);
|
||||
@ -2803,10 +2800,6 @@ class calendar_ical extends calendar_boupdate
|
||||
}
|
||||
$vcardData['recur_exception'] = array_merge($vcardData['recur_exception'], $days);
|
||||
}
|
||||
else
|
||||
{
|
||||
$vcardData['recur_exception'] = array_merge($vcardData['recur_exception'], $attributes['values']);
|
||||
}
|
||||
break;
|
||||
case 'SUMMARY':
|
||||
$vcardData['title'] = str_replace("\r\n", "\n", $attributes['value']);
|
||||
|
Loading…
Reference in New Issue
Block a user