Commit a730795d authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

2nd part of bug 398428: After creating or editing an attachment, immediately…

2nd part of bug 398428: After creating or editing an attachment, immediately display the bug it belongs to - Patch by me, a=LpSolit
parent d5e00a54
......@@ -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());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment