Skip to content
Snippets Groups Projects
Commit a6d84bfb authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #839 from greezybacon/issue/838


Fix filter issue where negative logic prevents matches

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents fcb0d3da 1f5694c1
No related branches found
No related tags found
No related merge requests found
......@@ -786,6 +786,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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment