mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-19 01:34:26 +00:00
Fix support for missing <prop> or <allprop/> on multiget/query reports.
This commit is contained in:
parent
c1bdf04848
commit
d88e1ca007
@ -29,7 +29,7 @@ switch( $proptype ) {
|
||||
break;
|
||||
|
||||
case 'DAV::allprop':
|
||||
$properties['allprop'] = 1;
|
||||
$properties['DAV::allprop'] = 1;
|
||||
if ( $qry_content[1]->GetNSTag() == 'DAV::include' ) {
|
||||
foreach( $qry_content[1]->GetElements() AS $k => $v ) {
|
||||
$include_properties[] = $v->GetNSTag(); /** $include_properties is referenced in DAVResource where allprop is expanded */
|
||||
@ -41,6 +41,7 @@ switch( $proptype ) {
|
||||
default:
|
||||
$properties[$proptype] = 1;
|
||||
}
|
||||
if ( empty($properties) ) $properties['DAV::allprop'] = 1;
|
||||
|
||||
/**
|
||||
* There can only be *one* FILTER element.
|
||||
|
||||
@ -38,7 +38,7 @@ switch( $proptype ) {
|
||||
break;
|
||||
|
||||
case 'DAV::allprop':
|
||||
$properties['allprop'] = 1;
|
||||
$properties['DAV::allprop'] = 1;
|
||||
if ( $qry_content[1]->GetNSTag() == 'DAV::include' ) {
|
||||
foreach( $qry_content[1]->GetElements() AS $k => $v ) {
|
||||
$include_properties[] = $v->GetNSTag(); /** $include_properties is referenced in DAVResource where allprop is expanded */
|
||||
@ -50,6 +50,7 @@ switch( $proptype ) {
|
||||
default:
|
||||
$properties[$proptype] = 1;
|
||||
}
|
||||
if ( empty($properties) ) $properties['DAV::allprop'] = 1;
|
||||
|
||||
$collection = new DAVResource($request->path);
|
||||
$bound_from = $collection->bound_from();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user