From d72e76f24495a222a722c33b353ff15cc2c5c346 Mon Sep 17 00:00:00 2001 From: ralf Date: Wed, 9 Aug 2023 14:57:40 +0200 Subject: [PATCH] * Calendar/CalDAV: download of whole calendar as ics with a GET request on the collection and download GET parameter gave an empty file --- calendar/inc/class.calendar_groupdav.inc.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/calendar/inc/class.calendar_groupdav.inc.php b/calendar/inc/class.calendar_groupdav.inc.php index 460efda5c0..76e6848d8d 100644 --- a/calendar/inc/class.calendar_groupdav.inc.php +++ b/calendar/inc/class.calendar_groupdav.inc.php @@ -177,14 +177,6 @@ class calendar_groupdav extends Api\CalDAV\Handler return $this->free_busy_report($path, $options, $user); } - if (isset($_GET['download'])) - { - $this->caldav->propfind_options['props'] = array(array( - 'xmlns' => Api\CalDAV::CALDAV, - 'name' => 'calendar-data', - )); - } - // ToDo: add parameter to only return id & etag $filter = array( 'users' => $user, @@ -263,7 +255,7 @@ class calendar_groupdav extends Api\CalDAV\Handler // check if we have to return the full calendar data or just the etag's if (!($filter['calendar_data'] = $options['props'] == 'all' && - $options['root']['ns'] == Api\CalDAV::CALDAV) && is_array($options['props'])) + $options['root']['ns'] == Api\CalDAV::CALDAV || isset($_GET['download'])) && is_array($options['props'])) { foreach($options['props'] as $prop) {