We will only return supported-calendar-component-set on a calendar for now.

This commit is contained in:
Andrew McMillan 2009-11-02 10:02:50 +13:00
parent 379747180a
commit 871e6841f1

View File

@ -422,7 +422,7 @@ function collection_to_xml( $collection ) {
$collations[] = $reply->NewXMLElement($reply->Caldav('supported-collation'), 'i;octet');
$prop->NewElement($reply->Caldav('supported-collation-set'), $collations );
}
if ( isset($prop_list['urn:ietf:params:xml:ns:caldav:supported-calendar-component-set']) ) {
if ( isset($prop_list['urn:ietf:params:xml:ns:caldav:supported-calendar-component-set']) && $request->IsCalendar() ) {
// Note that this won't appear on a PROPFIND against a Principal URL, since this routine is only called for a collection
$components = array();
$set_of_components = array( 'VEVENT', 'VTODO', 'VJOURNAL', 'VTIMEZONE', 'VFREEBUSY' );