summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2017-06-28 23:13:22 +0200
committerDylan William Hardison <dylan@hardison.net>2017-07-07 00:19:20 +0200
commit662b0801c0e429b7d83c2ad6ed47a0293f10ff5e (patch)
tree382a23c84c31f1d0dcde80ac9aba918c3936a2dd /Bugzilla
parentcea1575495ba32f4eb2c96a424d974877614f7f9 (diff)
downloadbugzilla-662b0801c0e429b7d83c2ad6ed47a0293f10ff5e.tar.gz
bugzilla-662b0801c0e429b7d83c2ad6ed47a0293f10ff5e.tar.xz
Bug 1376850 - Add special case for substring searches on whiteboard status field
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Elastic/Search.pm7
1 files changed, 7 insertions, 0 deletions
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 => {