summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlbert Ting <altlist@gmail.com>2016-04-20 03:35:59 +0200
committerDavid Lawrence <dkl@mozilla.com>2016-04-20 03:35:59 +0200
commite2b113614dd7c00eef3fb890103935a33f03fb83 (patch)
tree68d535b6b14a38b3a38d507a83cddb079e5c074c
parentab5ec7e826741ab6bc8292114e6c6d41c7630a9c (diff)
downloadbugzilla-e2b113614dd7c00eef3fb890103935a33f03fb83.tar.gz
bugzilla-e2b113614dd7c00eef3fb890103935a33f03fb83.tar.xz
Bug 542239 - Accept pronouns everywhere in query.cgi
r=dkl
-rw-r--r--Bugzilla/Search.pm4
-rw-r--r--template/en/default/search/form.html.tmpl2
2 files changed, 3 insertions, 3 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm
index 3274b57a6..b922f5845 100644
--- a/Bugzilla/Search.pm
+++ b/Bugzilla/Search.pm
@@ -1636,8 +1636,8 @@ sub _special_parse_email {
my $id = $1;
my $email = trim($params->{"email$id"});
next if !$email;
- my $type = $params->{"emailtype$id"} || 'anyexact';
- $type = "anyexact" if $type eq "exact";
+ my $type = $params->{"emailtype$id"} || 'equals';
+ $type = "equals" if $type eq "exact";
my $or_clause = new Bugzilla::Search::Clause('OR');
foreach my $field (qw(assigned_to reporter cc qa_contact)) {
diff --git a/template/en/default/search/form.html.tmpl b/template/en/default/search/form.html.tmpl
index 30835b1b0..0eed667c5 100644
--- a/template/en/default/search/form.html.tmpl
+++ b/template/en/default/search/form.html.tmpl
@@ -260,7 +260,7 @@ TUI_hide_default('information_query');
[% FOREACH qv = [
{ name => "substring", description => "contains" },
{ name => "notsubstring", description => "doesn't contain" },
- { name => "exact", description => "is" },
+ { name => "equals", description => "is" },
{ name => "notequals", description => "is not" },
{ name => "regexp", description => "matches regexp" },
{ name => "notregexp", description => "doesn't match regexp" } ] %]