diff options
author | lpsolit%gmail.com <> | 2007-11-12 02:20:29 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2007-11-12 02:20:29 +0000 |
commit | a730795dfde3ca244bf2245ae7903053f9d4936f (patch) | |
tree | 9f58993d7824b27f5dac7568e17125bde72eca4b /attachment.cgi | |
parent | Bug 397665: "Assigning Group Controls to Products" doesn't explain editcompon... (diff) | |
download | bugzilla-a730795dfde3ca244bf2245ae7903053f9d4936f.tar.gz bugzilla-a730795dfde3ca244bf2245ae7903053f9d4936f.tar.bz2 bugzilla-a730795dfde3ca244bf2245ae7903053f9d4936f.zip |
2nd part of bug 398428: After creating or editing an attachment, immediately display the bug it belongs to - Patch by me, a=LpSolit
Diffstat (limited to 'attachment.cgi')
-rwxr-xr-x | attachment.cgi | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/attachment.cgi b/attachment.cgi index cc6408f2b..2d5b6abc4 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()); } |