]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 480999: Irrelevant username check in the 'Email Addresses, Bug Numbers, and Votes...
authorlpsolit%gmail.com <>
Mon, 2 Mar 2009 20:23:34 +0000 (20:23 +0000)
committerlpsolit%gmail.com <>
Mon, 2 Mar 2009 20:23:34 +0000 (20:23 +0000)
Bugzilla/Search.pm

index 2f86d2502b5cb56854fc9d6ead4ebecefa7d5273..0c0a76562bcf2f077d2bf85044f1a6ee16d9ab9c 100644 (file)
@@ -237,15 +237,7 @@ sub init {
             next;
         }
         my $type = $params->param("emailtype$id");
-        if ($type eq "exact") {
-            $type = "anyexact";
-            foreach my $name (split(',', $email)) {
-                $name = trim($name);
-                if ($name) {
-                    login_to_id($name, THROW_ERROR);
-                }
-            }
-        }
+        $type = "anyexact" if ($type eq "exact");
 
         my @clist;
         foreach my $field ("assigned_to", "reporter", "cc", "qa_contact") {
@@ -259,6 +251,17 @@ sub init {
         if (@clist) {
             push(@specialchart, \@clist);
         }
+        else {
+            # No field is selected. Nothing to see here.
+            next;
+        }
+
+        if ($type eq "anyexact") {
+            foreach my $name (split(',', $email)) {
+                $name = trim($name);
+                login_to_id($name, THROW_ERROR) if $name;
+            }
+        }
     }
 
     my $chfieldfrom = trim(lc($params->param('chfieldfrom'))) || '';