aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReed Loden <reed@reedloden.com>2010-05-06 22:44:58 -0500
committerReed Loden <reed@reedloden.com>2010-05-06 22:44:58 -0500
commitb4c91adafa45e4e1146ca1dabab27404dac6bab6 (patch)
treefa98b726cf2726aef6638289db59d8c3df86eda4 /contrib
parentBug 463945: Add default values for membercontrol and othercontrol (diff)
downloadbugzilla-b4c91adafa45e4e1146ca1dabab27404dac6bab6.tar.gz
bugzilla-b4c91adafa45e4e1146ca1dabab27404dac6bab6.tar.bz2
bugzilla-b4c91adafa45e4e1146ca1dabab27404dac6bab6.zip
Bug 395451 - "Bugzilla::BugMail needs to use Bug objects internally instead of direct SQL"
[r=mkanat a=mkanat]
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/sendbugmail.pl7
1 files changed, 4 insertions, 3 deletions
diff --git a/contrib/sendbugmail.pl b/contrib/sendbugmail.pl
index f4bebabc6..51de9407d 100755
--- a/contrib/sendbugmail.pl
+++ b/contrib/sendbugmail.pl
@@ -56,13 +56,14 @@ if ($changer !~ /$match/) {
print STDERR "Changer \"$changer\" doesn't match email regular expression.\n";
usage();
}
-if(!login_to_id($changer)) {
- print STDERR "\"$changer\" is not a login ID.\n";
+my $changer_user = new Bugzilla::User({ name => $changer });
+unless ($changer_user) {
+ print STDERR "\"$changer\" is not a valid user.\n";
usage();
}
# Send the email.
-my $outputref = Bugzilla::BugMail::Send($bugnum, {'changer' => $changer });
+my $outputref = Bugzilla::BugMail::Send($bugnum, {'changer' => $changer_user });
# Report the results.
my $sent = scalar(@{$outputref->{sent}});