diff options
author | Reed Loden <reed@reedloden.com> | 2010-05-07 05:44:58 +0200 |
---|---|---|
committer | Reed Loden <reed@reedloden.com> | 2010-05-07 05:44:58 +0200 |
commit | b4c91adafa45e4e1146ca1dabab27404dac6bab6 (patch) | |
tree | fa98b726cf2726aef6638289db59d8c3df86eda4 /extensions | |
parent | 2ca283e7bfc85d86ffd5f312bbab89eedcf9929b (diff) | |
download | bugzilla-b4c91adafa45e4e1146ca1dabab27404dac6bab6.tar.gz bugzilla-b4c91adafa45e4e1146ca1dabab27404dac6bab6.tar.xz |
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; } } |