diff --git a/inc/caldav-PROPPATCH.php b/inc/caldav-PROPPATCH.php index 890819b0..80d301a6 100644 --- a/inc/caldav-PROPPATCH.php +++ b/inc/caldav-PROPPATCH.php @@ -334,7 +334,18 @@ if ( $qry->Commit() ) { $href = new XMLElement('href', $url ); $desc = new XMLElement('responsedescription', translate("All requested changes were made.") ); - $multistatus = new XMLElement( "multistatus", new XMLElement( 'response', array( $href, $desc ) ), array('xmlns'=>'DAV:') ); + $propstat = array(); + foreach( $success AS $tag => $v ) { + $propstat[] = new XMLElement( 'propstat', array( + new XMLElement( 'prop', new XMLElement($tag)), + new XMLElement( 'status', 'HTTP/1.1 200 OK' ), + )); + } + + $url = ConstructURL($request->path); + array_unshift( $failure, new XMLElement('href', $url ) ); + + $multistatus = new XMLElement( "multistatus", new XMLElement( 'response', array( $href, $propstat, $desc ) ), array('xmlns'=>'DAV:') ); $request->DoResponse( 200, $multistatus->Render(0,''), 'text/xml; charset="utf-8"' ); }