]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
2nd part of bug 398428: After creating or editing an attachment, immediately display...
authorlpsolit%gmail.com <>
Mon, 12 Nov 2007 02:20:29 +0000 (02:20 +0000)
committerlpsolit%gmail.com <>
Mon, 12 Nov 2007 02:20:29 +0000 (02:20 +0000)
attachment.cgi

index cc6408f2baa594fe9fd9d2032a6111af3b4756e6..2d5b6abc49ef049e8b55c1d13f288ecb3d5cda04 100755 (executable)
@@ -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());
     }