diff options
author | Reed Loden <reed@reedloden.com> | 2010-05-06 22:44:58 -0500 |
---|---|---|
committer | Reed Loden <reed@reedloden.com> | 2010-05-06 22:44:58 -0500 |
commit | b4c91adafa45e4e1146ca1dabab27404dac6bab6 (patch) | |
tree | fa98b726cf2726aef6638289db59d8c3df86eda4 /contrib | |
parent | Bug 463945: Add default values for membercontrol and othercontrol (diff) | |
download | bugzilla-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-x | contrib/sendbugmail.pl | 7 |
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}}); |