When a bind is made to an existing bind, bind to the target of that.

This commit is contained in:
Andrew McMillan 2012-05-05 22:57:43 +12:00
parent f05063fedf
commit b1256ecb6e

View File

@ -99,6 +99,10 @@ else {
$request->PreconditionFailed(403,'DAV::binding-allowed',translate('DAViCal only allows BIND requests for collections at present.'));
}
if ( $source->IsBinding() )
$source = new DAVResource( $source->bound_from() );
/*
bind_id INT8 DEFAULT nextval('dav_id_seq') PRIMARY KEY,
bound_source_id INT8 REFERENCES collection(collection_id) ON UPDATE CASCADE ON DELETE CASCADE,