mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-24 17:36:39 +00:00
Support event properties in changed part of sync-response.
This commit is contained in:
parent
6ebc542c2a
commit
0a59903259
@ -102,6 +102,8 @@ if ( $qry->Exec("REPORT",__LINE__,__FILE__) ) {
|
||||
new XMLElement( 'href', ConstructURL($object->dav_name) ),
|
||||
new XMLElement( 'status', display_status($object->sync_status) )
|
||||
);
|
||||
$dav_resource = new DAVResource($object);
|
||||
$resultset = array_merge( $resultset, $dav_resource->GetPropStat($proplist,$reply) );
|
||||
$responses[] = new XMLElement( 'sync-response', $resultset );
|
||||
}
|
||||
/** Else:
|
||||
@ -118,10 +120,8 @@ if ( $qry->Exec("REPORT",__LINE__,__FILE__) ) {
|
||||
new XMLElement( 'href', ConstructURL($object->dav_name) ),
|
||||
new XMLElement( 'status', display_status($object->sync_status) )
|
||||
);
|
||||
if ( $object->sync_status != 404 ) {
|
||||
$dav_resource = new DAVResource($object);
|
||||
$resultset = array_merge( $resultset, $dav_resource->GetPropStat($proplist,$reply) );
|
||||
}
|
||||
$dav_resource = new DAVResource($object);
|
||||
$resultset = array_merge( $resultset, $dav_resource->GetPropStat($proplist,$reply) );
|
||||
$response_tag = 'response';
|
||||
if ( isset($c->use_old_sync_response_tag) && $c->use_old_sync_response_tag ) $response_tag = 'sync-response';
|
||||
$responses[] = new XMLElement( $response_tag, $resultset );
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user