From ba5cacd09f75aa4e8c6da0f6d42ad4b7613858b3 Mon Sep 17 00:00:00 2001 From: "justdave%syndicomm.com" Date: Tue, 27 Apr 2004 03:58:55 +0000 Subject: [PATCH] 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 git-svn-id: svn://10.0.0.236/trunk@155563 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/attachment.cgi | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mozilla/webtools/bugzilla/attachment.cgi b/mozilla/webtools/bugzilla/attachment.cgi index 67e8559c407..44a49c5f7e1 100755 --- a/mozilla/webtools/bugzilla/attachment.cgi +++ b/mozilla/webtools/bugzilla/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;