Commit 1c174f4b authored by Florian Schlichting's avatar Florian Schlichting

fix sync of deleted events when hide_todo is set (fixes #100)

thanks Jerome Borsboom @hinotori
parent 74828c8c
......@@ -86,7 +86,7 @@ else {
$hide_todo = '';
if ( isset($c->hide_TODO) && ($c->hide_TODO === true || (is_string($c->hide_TODO) && preg_match($c->hide_TODO, $_SERVER['HTTP_USER_AGENT']))) && ! $collection->HavePrivilegeTo('all') )
$hide_todo = " AND caldav_data.caldav_type NOT IN ('VTODO') ";
$hide_todo = " AND (caldav_data.caldav_type NOT IN ('VTODO') OR caldav_data.caldav_type IS NULL) ";
if ( $sync_token == 0 ) {
$sql = <<<EOSQL
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment