From d70fd0fbd28c49ec5f6ebe41be4b1a17765f2a8d Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Fri, 16 Oct 2009 13:03:06 +1300 Subject: [PATCH] Create schedulei(in|out)box with correct resourcetypes. --- inc/CalDAVRequest.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/inc/CalDAVRequest.php b/inc/CalDAVRequest.php index ae604e43..0a919936 100644 --- a/inc/CalDAVRequest.php +++ b/inc/CalDAVRequest.php @@ -266,11 +266,12 @@ class CalDAVRequest // The request is for a scheduling inbox or outbox (or something inside one) and we should auto-create it $displayname = $session->fullname . ($matches[3] == 'in' ? ' Inbox' : ' Outbox'); $this->collection_type = 'schedule-'. $matches[3]. 'box'; + $resourcetypes = sprintf('', $this->collection_type ); $sql = <<user_no, $matches[2] , $matches[1], $displayname ); + $qry = new PgQuery( $sql, $session->user_no, $matches[2] , $matches[1], $displayname, $resourcetypes ); $qry->Exec('caldav'); dbg_error_log( "caldav", "Created new collection as '$displayname'." );