mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-24 15:48:55 +01:00
* InfoLog/CalDAV: deleted entries where not taken into account for ctag generation, causing deletes only to sync after other modifications
This commit is contained in:
parent
3cc923ddc4
commit
1e7718a3c6
@ -1085,6 +1085,8 @@ class infolog_bo
|
||||
'start' => 0,
|
||||
'num_rows' => 1,
|
||||
);
|
||||
// we need to query deleted entries too for a ctag!
|
||||
$filter['filter'] .= '+deleted';
|
||||
|
||||
$result =& $this->search($filter);
|
||||
|
||||
|
@ -278,7 +278,7 @@ class infolog_so
|
||||
*/
|
||||
function statusFilter($filter = '',$prefix_and=true)
|
||||
{
|
||||
preg_match('/(done|open|offer|deleted)/',$filter,$vars);
|
||||
preg_match('/(done|open|offer|deleted|\+deleted)/',$filter,$vars);
|
||||
$filter = $vars[1];
|
||||
|
||||
switch ($filter)
|
||||
@ -287,6 +287,7 @@ class infolog_so
|
||||
case 'open': $filter = "NOT (info_status IN ('done','billed','cancelled','deleted','template','nonactive','archive'))"; break;
|
||||
case 'offer': $filter = "info_status = 'offer'"; break;
|
||||
case 'deleted': $filter = "info_status = 'deleted'"; break;
|
||||
case '+deleted':$filter = "NOT (info_status IN ('template','nonactive','archive'))"; break;
|
||||
default: $filter = "NOT (info_status IN ('deleted','template','nonactive','archive'))"; break;
|
||||
}
|
||||
return ($prefix_and ? ' AND ' : '').$filter;
|
||||
|
Loading…
Reference in New Issue
Block a user