]> 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:50:44 +0000 (01:50 +0000)
committerDavid Lawrence <dkl@mozilla.com>
Wed, 20 Apr 2016 01:50:44 +0000 (01:50 +0000)
r=dkl,a=dkl

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

index 0785a7e67d40f32533b166630b794a6588a8b638..646f949f5481c5f5fd5fc1e9c9a6a4d98c7599df 100644 (file)
@@ -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)) {
index 0420811eeb3312344ba5ec110c1dc1436bafbe93..ac8aeaf6167c7564afc385c4c936b725f0046cbc 100644 (file)
@@ -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" } ] %]