From 662b0801c0e429b7d83c2ad6ed47a0293f10ff5e Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Wed, 28 Jun 2017 14:13:22 -0700 Subject: Bug 1376850 - Add special case for substring searches on whiteboard status field --- Bugzilla/Elastic/Search.pm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Bugzilla/Elastic/Search.pm b/Bugzilla/Elastic/Search.pm index 5c60f2353..2a49fd870 100644 --- a/Bugzilla/Elastic/Search.pm +++ b/Bugzilla/Elastic/Search.pm @@ -361,6 +361,13 @@ sub _operator_substring { } } } + elsif ($field eq 'status_whiteboard' && $value =~ /[\[\]]/) { + return { + match => { + $EQUALS_MAP{$field} // $field => $value, + } + }; + } else { return { wildcard => { -- cgit v1.2.3-24-g4f1b