]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1376850 - Add special case for substring searches on whiteboard status field
authorDylan William Hardison <dylan@hardison.net>
Wed, 28 Jun 2017 21:13:22 +0000 (14:13 -0700)
committerDylan William Hardison <dylan@hardison.net>
Thu, 6 Jul 2017 22:19:20 +0000 (18:19 -0400)
Bugzilla/Elastic/Search.pm

index 5c60f235390346fb528beb2a3edca3d061879994..2a49fd8708ab6004ef9555025107714bbfdd179c 100644 (file)
@@ -361,6 +361,13 @@ sub _operator_substring {
             }
         }
     }
+    elsif ($field eq 'status_whiteboard' && $value =~ /[\[\]]/) {
+        return {
+            match => {
+                $EQUALS_MAP{$field} // $field => $value,
+            }
+        };
+    }
     else {
         return {
             wildcard => {