From: lpsolit%gmail.com <> Date: Mon, 12 Nov 2007 02:20:29 +0000 (+0000) Subject: 2nd part of bug 398428: After creating or editing an attachment, immediately display... X-Git-Tag: bugzilla-3.1.3~474 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a730795dfde3ca244bf2245ae7903053f9d4936f;p=thirdparty%2Fbugzilla.git 2nd part of bug 398428: After creating or editing an attachment, immediately display the bug it belongs to - Patch by me, a=LpSolit --- diff --git a/attachment.cgi b/attachment.cgi index cc6408f2ba..2d5b6abc49 100755 --- a/attachment.cgi +++ b/attachment.cgi @@ -654,6 +654,10 @@ sub delete_attachment { # Paste the reason provided by the admin into a comment. AppendComment($attachment->bug_id, $user->id, $msg); + # Required to display the bug the deleted attachment belongs to. + $vars->{'bugs'} = [new Bugzilla::Bug($attachment->bug_id)]; + $vars->{'header_done'} = 1; + $template->process("attachment/updated.html.tmpl", $vars) || ThrowTemplateError($template->error()); }