mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-11 15:26:15 +00:00
We should be getting the sync_changes data last.
This is so we get dav_name correct for delete actions, which will otherwise be null since there is no caldav_data or calendar_item record for them any longer.
This commit is contained in:
parent
580d5312c3
commit
5fac9850db
@ -53,7 +53,8 @@ EOSQL;
|
||||
}
|
||||
else {
|
||||
$sql = <<<EOSQL
|
||||
SELECT * FROM collection LEFT JOIN sync_changes USING(collection_id)
|
||||
SELECT collection.*, caldav_data.*, calendar_item.*, sync_changes.*
|
||||
FROM collection LEFT JOIN sync_changes USING(collection_id)
|
||||
LEFT JOIN calendar_item USING (collection_id,dav_id)
|
||||
LEFT JOIN caldav_data USING (collection_id,dav_id)
|
||||
WHERE collection.collection_id = ?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user