From 584a52cb70d99b57ae1c40083851780a88af4b23 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Thu, 20 Sep 2012 23:37:22 +1200 Subject: [PATCH] Quick workaround for iOS6 supported-calendar-component-set issue. Adds a $c->default_calendar_components array of (VEVENT,VTODO,...) --- inc/DAVResource.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/inc/DAVResource.php b/inc/DAVResource.php index 6f3a5dbf..36cebf92 100644 --- a/inc/DAVResource.php +++ b/inc/DAVResource.php @@ -1706,8 +1706,11 @@ EOQRY; } } } + else if ( isset($c->default_calendar_components) && is_array($c->default_calendar_components) ) { + $set_of_components = $c->default_calendar_components; + } else { - $set_of_components = array( 'VEVENT', 'VTODO', 'VJOURNAL', 'VTIMEZONE', 'VFREEBUSY', 'VPOLL', 'VAVAILABILITY' ); + $set_of_components = array( 'VEVENT', 'VTODO', 'VJOURNAL' ); } } else if ( $this->IsSchedulingCollection() )