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 /extensions | |
parent | 2ca283e7bfc85d86ffd5f312bbab89eedcf9929b (diff) | |
download | bugs-b4c91adafa45e4e1146ca1dabab27404dac6bab6.tar bugs-b4c91adafa45e4e1146ca1dabab27404dac6bab6.tar.gz bugs-b4c91adafa45e4e1146ca1dabab27404dac6bab6.tar.bz2 bugs-b4c91adafa45e4e1146ca1dabab27404dac6bab6.tar.xz bugs-b4c91adafa45e4e1146ca1dabab27404dac6bab6.zip |
Bug 395451 - "Bugzilla::BugMail needs to use Bug objects internally instead of direct SQL"
[r=mkanat a=mkanat]
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/Voting/Extension.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/Voting/Extension.pm b/extensions/Voting/Extension.pm index 5d455ad36..97e061313 100644 --- a/extensions/Voting/Extension.pm +++ b/extensions/Voting/Extension.pm @@ -619,7 +619,7 @@ sub _update_votes { foreach my $bug_id (@updated_bugs) { $vars->{'id'} = $bug_id; $vars->{'sent_bugmail'} = - Bugzilla::BugMail::Send($bug_id, { 'changer' => $user->login }); + Bugzilla::BugMail::Send($bug_id, { 'changer' => $user }); $template->process("bug/process/results.html.tmpl", $vars) || ThrowTemplateError($template->error()); @@ -729,7 +729,7 @@ sub _modify_bug_votes { # And send out emails about changed bugs foreach my $bug_id (@updated_bugs) { my $sent_bugmail = Bugzilla::BugMail::Send( - $bug_id, { changer => Bugzilla->user->login }); + $bug_id, { changer => Bugzilla->user }); $changes->{'confirmed_bugs_sent_bugmail'}->{$bug_id} = $sent_bugmail; } } |