diff --git a/include/class.filter.php b/include/class.filter.php index 15c68cc3170596abef12fb44e1eaf4365b7c447c..319f7c0dcd67832321ca550246b1498ef8367945 100644 --- a/include/class.filter.php +++ b/include/class.filter.php @@ -813,6 +813,9 @@ class TicketFilter { if($this->vars['subject']) $sql.=" OR (what='subject' AND LOCATE(val, ".db_input($this->vars['subject']).'))'; + # Always include negative-logic rules + $sql.=" OR how IN ('dn_contain', 'not_equal')"; + # Also include filters that do not have any rules concerning either # sender-email-addresses or sender-names or subjects