diff --git a/infolog/inc/class.infolog_bo.inc.php b/infolog/inc/class.infolog_bo.inc.php index 9f007be1df..a3a874b0c1 100644 --- a/infolog/inc/class.infolog_bo.inc.php +++ b/infolog/inc/class.infolog_bo.inc.php @@ -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); diff --git a/infolog/inc/class.infolog_so.inc.php b/infolog/inc/class.infolog_so.inc.php index 4af8960c14..857540f38a 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;