From 65900c3984aa00578d701ea0622ff989346ae07f Mon Sep 17 00:00:00 2001 From: Nicolas Brassard Date: Fri, 19 Oct 2018 14:57:27 -0400 Subject: [PATCH] Fix broken regexp: filters We were missing an else, so the real else case was running when it should not have. Fixes #10 --- fields/field.textbox.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fields/field.textbox.php b/fields/field.textbox.php index 73bdb51..baa94e0 100755 --- a/fields/field.textbox.php +++ b/fields/field.textbox.php @@ -851,7 +851,7 @@ public function buildDSRetrievalSQL($data, &$joins, &$where, $andOperation = fal $this->buildRegexSQL($data[0], array('value', 'handle'), $joins, $where); } - if (self::isFilterSQL($data[0])) { + else if (self::isFilterSQL($data[0])) { $this->buildFilterSQL($data[0], array('value', 'handle'), $joins, $where); }