mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-02-21 04:43:35 +00:00
We might not have a $request calling this so use the object's path instead.
This commit is contained in:
parent
86b717a390
commit
ed9280c90c
@ -47,7 +47,7 @@ function export_iCalendar( DAVResource $dav_resource ) {
|
||||
$where .= '(SELECT bound_source_id FROM dav_binding WHERE dav_binding.dav_name ~ :path_match ';
|
||||
$where .= 'UNION ';
|
||||
$where .= 'SELECT collection_id FROM collection WHERE collection.dav_name ~ :path_match) ';
|
||||
$params = array( ':path_match' => '^'.$request->path );
|
||||
$params = array( ':path_match' => '^'.$dav_resource->dav_name() );
|
||||
$distinct = 'DISTINCT ON (calendar_item.uid) ';
|
||||
}
|
||||
else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user