Commit 57886cce authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 480999: Irrelevant username check in the 'Email Addresses, Bug Numbers, and…

Bug 480999: Irrelevant username check in the 'Email Addresses, Bug Numbers, and Votes' section if no checkbox is checked - Patch by Fré©ric Buclin <LpSolit@gmail.com> r/a=mkanat
parent 0b69cb3e
...@@ -237,15 +237,7 @@ sub init { ...@@ -237,15 +237,7 @@ sub init {
next; next;
} }
my $type = $params->param("emailtype$id"); my $type = $params->param("emailtype$id");
if ($type eq "exact") { $type = "anyexact" if ($type eq "exact");
$type = "anyexact";
foreach my $name (split(',', $email)) {
$name = trim($name);
if ($name) {
login_to_id($name, THROW_ERROR);
}
}
}
my @clist; my @clist;
foreach my $field ("assigned_to", "reporter", "cc", "qa_contact") { foreach my $field ("assigned_to", "reporter", "cc", "qa_contact") {
...@@ -259,6 +251,17 @@ sub init { ...@@ -259,6 +251,17 @@ sub init {
if (@clist) { if (@clist) {
push(@specialchart, \@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'))) || ''; my $chfieldfrom = trim(lc($params->param('chfieldfrom'))) || '';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment