aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlbert Ting <altlist@gmail.com>2016-04-20 01:50:44 +0000
committerDavid Lawrence <dkl@mozilla.com>2016-04-20 01:50:44 +0000
commitea0c5024c1701f6dfdc77c9161d9c0ff2f6c4bde (patch)
tree33392400b4822eb0d1309f16ba0be177ee393fcd
parenta868b88d147f14c2135beb53b82babbc4c46635f (diff)
downloadbugs-ea0c5024c1701f6dfdc77c9161d9c0ff2f6c4bde.tar
bugs-ea0c5024c1701f6dfdc77c9161d9c0ff2f6c4bde.tar.gz
bugs-ea0c5024c1701f6dfdc77c9161d9c0ff2f6c4bde.tar.bz2
bugs-ea0c5024c1701f6dfdc77c9161d9c0ff2f6c4bde.tar.xz
bugs-ea0c5024c1701f6dfdc77c9161d9c0ff2f6c4bde.zip
Bug 542239 - Accept pronouns everywhere in query.cgi
r=dkl,a=dkl
-rw-r--r--Bugzilla/Search.pm3
-rw-r--r--template/en/default/search/form.html.tmpl2
2 files changed, 3 insertions, 2 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm
index 0785a7e67..646f949f5 100644
--- a/Bugzilla/Search.pm
+++ b/Bugzilla/Search.pm
@@ -1628,7 +1628,8 @@ sub _special_parse_email {
my $email = trim($params->{"email$id"});
next if !$email;
my $type = $params->{"emailtype$id"} || 'anyexact';
- $type = "anyexact" if $type eq "exact";
+ # for backward compatibility
+ $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 0420811ee..ac8aeaf61 100644
--- a/template/en/default/search/form.html.tmpl
+++ b/template/en/default/search/form.html.tmpl
@@ -247,7 +247,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" } ] %]