summaryrefslogtreecommitdiffstats
path: root/attachment.cgi
diff options
context:
space:
mode:
authorjustdave%syndicomm.com <>2004-04-27 12:58:55 +0200
committerjustdave%syndicomm.com <>2004-04-27 12:58:55 +0200
commit8def33fe42d16d86d9cb660681af677b3b9db219 (patch)
treedf7194e224682a52559476030badc52e8a0f6efd /attachment.cgi
parentee5f2884e64cdad7f42d473db3df6ab41aaef2d9 (diff)
downloadbugzilla-8def33fe42d16d86d9cb660681af677b3b9db219.tar.gz
bugzilla-8def33fe42d16d86d9cb660681af677b3b9db219.tar.xz
Bug 234540: "Take bug" on create attachment screen missed an API change to BugMail which caused it not to mail the previous bug owner about the change.
r=gerv, a=justdave
Diffstat (limited to 'attachment.cgi')
-rwxr-xr-xattachment.cgi7
1 files changed, 4 insertions, 3 deletions
diff --git a/attachment.cgi b/attachment.cgi
index 67e8559c4..44a49c5f7 100755
--- a/attachment.cgi
+++ b/attachment.cgi
@@ -885,7 +885,7 @@ sub insert
}
# Assign the bug to the user, if they are allowed to take it
- my $forcecc = "";
+ my $owner = "";
if ($::FORM{'takebug'} && UserInGroup("editbugs")) {
SendSQL("select NOW()");
@@ -902,7 +902,7 @@ sub insert
my @newvalues = ($::userid, "ASSIGNED", "", DBID_to_name($::userid));
# Make sure the person we are taking the bug from gets mail.
- $forcecc = $oldvalues[3];
+ $owner = $oldvalues[3];
@oldvalues = map(SqlQuote($_), @oldvalues);
@newvalues = map(SqlQuote($_), @newvalues);
@@ -930,7 +930,8 @@ sub insert
}
# Define the variables and functions that will be passed to the UI template.
- $vars->{'mailrecipients'} = { 'changer' => $::COOKIE{'Bugzilla_login'} };
+ $vars->{'mailrecipients'} = { 'changer' => $::COOKIE{'Bugzilla_login'},
+ 'owner' => $owner };
$vars->{'bugid'} = $::FORM{'bugid'};
$vars->{'attachid'} = $attachid;
$vars->{'description'} = $description;