]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 542239 - Accept pronouns everywhere in query.cgi
authorAlbert Ting <altlist@gmail.com>
Wed, 20 Apr 2016 01:35:59 +0000 (01:35 +0000)
committerDavid Lawrence <dkl@mozilla.com>
Wed, 20 Apr 2016 01:35:59 +0000 (01:35 +0000)
r=dkl

Bugzilla/Search.pm
template/en/default/search/form.html.tmpl

index 3274b57a63e5f63fabc3e7788d8a94cd3d6ced45..b922f584523d2347454967c778a0ec4d0817caf8 100644 (file)
@@ -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)) {
index 30835b1b0b95b3e7a89f737a970023b8a5bf5663..0eed667c5d003dcbc95e87b0580fe1419ee0e470 100644 (file)
@@ -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" } ] %]