mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
* Calendar/CalDAV: download of whole calendar as ics with a GET request on the collection and download GET parameter gave an empty file
This commit is contained in:
parent
aceb73eb53
commit
d72e76f244
@ -177,14 +177,6 @@ class calendar_groupdav extends Api\CalDAV\Handler
|
|||||||
return $this->free_busy_report($path, $options, $user);
|
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
|
// ToDo: add parameter to only return id & etag
|
||||||
$filter = array(
|
$filter = array(
|
||||||
'users' => $user,
|
'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
|
// check if we have to return the full calendar data or just the etag's
|
||||||
if (!($filter['calendar_data'] = $options['props'] == 'all' &&
|
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)
|
foreach($options['props'] as $prop)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user