diff options
author | Dylan William Hardison <dylan@hardison.net> | 2017-06-28 23:13:22 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2017-07-07 00:19:20 +0200 |
commit | 662b0801c0e429b7d83c2ad6ed47a0293f10ff5e (patch) | |
tree | 382a23c84c31f1d0dcde80ac9aba918c3936a2dd /Bugzilla | |
parent | cea1575495ba32f4eb2c96a424d974877614f7f9 (diff) | |
download | bugzilla-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.pm | 7 |
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 => { |