summaryrefslogtreecommitdiffstats
path: root/attachment.cgi
diff options
context:
space:
mode:
authorReed Loden <reed@reedloden.com>2010-05-07 05:44:58 +0200
committerReed Loden <reed@reedloden.com>2010-05-07 05:44:58 +0200
commitb4c91adafa45e4e1146ca1dabab27404dac6bab6 (patch)
treefa98b726cf2726aef6638289db59d8c3df86eda4 /attachment.cgi
parent2ca283e7bfc85d86ffd5f312bbab89eedcf9929b (diff)
downloadbugzilla-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 'attachment.cgi')
-rwxr-xr-xattachment.cgi6
1 files changed, 3 insertions, 3 deletions
diff --git a/attachment.cgi b/attachment.cgi
index 17846866f..b79c649f4 100755
--- a/attachment.cgi
+++ b/attachment.cgi
@@ -538,7 +538,7 @@ sub insert {
$vars->{'header_done'} = 1;
$vars->{'contenttypemethod'} = $cgi->param('contenttypemethod');
- my $recipients = { 'changer' => $user->login, 'owner' => $owner };
+ my $recipients = { 'changer' => $user, 'owner' => $owner };
$vars->{'sent_bugmail'} = Bugzilla::BugMail::Send($bugid, $recipients);
print $cgi->header();
@@ -666,7 +666,7 @@ sub update {
$vars->{'bugs'} = [$bug];
$vars->{'header_done'} = 1;
$vars->{'sent_bugmail'} =
- Bugzilla::BugMail::Send($bug->id, { 'changer' => $user->login });
+ Bugzilla::BugMail::Send($bug->id, { 'changer' => $user });
print $cgi->header();
@@ -739,7 +739,7 @@ sub delete_attachment {
$vars->{'header_done'} = 1;
$vars->{'sent_bugmail'} =
- Bugzilla::BugMail::Send($bug->id, { 'changer' => $user->login });
+ Bugzilla::BugMail::Send($bug->id, { 'changer' => $user });
$template->process("attachment/updated.html.tmpl", $vars)
|| ThrowTemplateError($template->error());