Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix filter issue where negative logic prevents matches #839

Merged
merged 1 commit into from
Nov 5, 2013

Conversation

greezybacon
Copy link
Contributor

The quickList() method will attempt to ask the database to find filters that might match the incoming ticket information. The idea is that MySQL is likely faster than PHP. The problem is that it assumes positive logic is being utilized.

This patch adds all filters with at least one rule with dn_contain (does-not-contain) or not_equal (not-equal)

Fixes #838

The quickList() method will attempt to ask the database to find filters that
might match the incoming ticket information. The idea is that MySQL is
likely faster than PHP. The problem is that it assumes positive logic is
being utilized.

This patch adds all filters with at least one rule with dn_contain
(does-not-contain) or not_equal (not-equal)
protich added a commit that referenced this pull request Nov 5, 2013
Fix filter issue where negative logic prevents matches

Reviewed-By: Peter Rotich <peter@osticket.com>
@protich protich merged commit a6d84bf into osTicket:develop Nov 5, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Does Not Contain Filter not Rejecting Tickets
2 participants