diff --git a/infolog/inc/class.infolog_bo.inc.php b/infolog/inc/class.infolog_bo.inc.php index e7695ef19a..35ea7588eb 100644 --- a/infolog/inc/class.infolog_bo.inc.php +++ b/infolog/inc/class.infolog_bo.inc.php @@ -1079,6 +1079,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); diff --git a/infolog/inc/class.infolog_so.inc.php b/infolog/inc/class.infolog_so.inc.php index d6d09108b6..cdfd52b174 100644 --- a/infolog/inc/class.infolog_so.inc.php +++ b/infolog/inc/class.infolog_so.inc.php @@ -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;