From: Dylan William Hardison Date: Wed, 28 Jun 2017 21:13:22 +0000 (-0700) Subject: Bug 1376850 - Add special case for substring searches on whiteboard status field X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=662b0801c0e429b7d83c2ad6ed47a0293f10ff5e;p=thirdparty%2Fbugzilla.git Bug 1376850 - Add special case for substring searches on whiteboard status field --- 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 => {