From ad8f23986c1a3e455f52a34b9decf5edd225d1e4 Mon Sep 17 00:00:00 2001
From: JediKev <kevin@enhancesoft.com>
Date: Tue, 14 Aug 2018 10:11:19 -0500
Subject: [PATCH] issue: Ticket Filter Does Not Match Regex
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

This addresses an issue reported on the forums where the ticket filter Rule
option of “Does Not Match Regex” isn’t working properly; instead it works in
reverse.
---
 include/class.filter.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/class.filter.php b/include/class.filter.php
index 29f49d904..64ad3625d 100644
--- a/include/class.filter.php
+++ b/include/class.filter.php
@@ -251,7 +251,7 @@ class Filter {
             'starts'    => array('stripos', 0),
             'ends'      => array('iendsWith', true),
             'match'     => array('pregMatchB', 1),
-            'not_match' => array('pregMatchB', null, 0),
+            'not_match' => array('pregMatchB', null, 1),
         );
 
         $match = false;
-- 
GitLab