Fix fetching of resource by path to work with addressbook resources also.

This commit is contained in:
Andrew McMillan 2010-09-24 12:14:05 +12:00
parent a9453bf589
commit 6d49488a7b

View File

@ -505,7 +505,9 @@ EOSQL;
if ( $this->_is_collection ) return; // We have all we're going to read
$sql = <<<EOQRY
SELECT * FROM caldav_data LEFT JOIN calendar_item USING (collection_id,dav_id)
SELECT calendar_item.*, addressbook_resource.*, caldav_data.*
FROM caldav_data LEFT JOIN calendar_item USING (collection_id,dav_id)
LEFT JOIN addressbook_resource USING (dav_id)
WHERE caldav_data.dav_name = :dav_name
EOQRY;
$params = array( ':dav_name' => $this->bound_from() );