mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-22 21:30:54 +01:00
Fix X-MICROSOFT-CDO-ALLDAYEVENT calendar issue for CalDAV clients
This commit is contained in:
parent
8cf762ea2d
commit
a01efd81c8
@ -1927,6 +1927,7 @@ class calendar_ical extends calendar_boupdate
|
||||
'recur_exception' => 'recur_exception',
|
||||
'title' => 'title',
|
||||
'alarm' => 'alarm',
|
||||
'whole_day' => 'whole_day',
|
||||
);
|
||||
|
||||
$defaultFields['basic'] = $defaultFields['minimal'] + array(
|
||||
@ -2110,6 +2111,7 @@ class calendar_ical extends calendar_boupdate
|
||||
{
|
||||
default:
|
||||
$this->supportedFields = $defaultFields['full'];
|
||||
unset($this->supportedFields['whole_day']);
|
||||
}
|
||||
break;
|
||||
|
||||
@ -2396,7 +2398,10 @@ class calendar_ical extends calendar_boupdate
|
||||
switch ($attributes['name'])
|
||||
{
|
||||
case 'X-MICROSOFT-CDO-ALLDAYEVENT':
|
||||
$event['whole_day'] = (isset($attributes['value'])?strtoupper($attributes['value'])=='TRUE':true);
|
||||
if (isset($supportedFields['whole_day']))
|
||||
{
|
||||
$event['whole_day'] = (isset($attributes['value'])?strtoupper($attributes['value'])=='TRUE':true);
|
||||
}
|
||||
break;
|
||||
case 'AALARM':
|
||||
case 'DALARM':
|
||||
@ -2913,6 +2918,7 @@ class calendar_ical extends calendar_boupdate
|
||||
case 'recur_data':
|
||||
case 'recur_exception':
|
||||
case 'recur_count':
|
||||
case 'whole_day':
|
||||
// not handled here
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user