summaryrefslogtreecommitdiffstats
path: root/post_bug.cgi
diff options
context:
space:
mode:
authorgerv%gerv.net <>2002-05-02 04:00:46 +0200
committergerv%gerv.net <>2002-05-02 04:00:46 +0200
commita4185828bb55a5c55c8a1da1a8e319caf16e4478 (patch)
tree37164efcf3c92ce159c0fbeb15b962e3d911e253 /post_bug.cgi
parent81d43fa41c61fc801863c9aabeae137c122e5e46 (diff)
downloadbugzilla-a4185828bb55a5c55c8a1da1a8e319caf16e4478.tar.gz
bugzilla-a4185828bb55a5c55c8a1da1a8e319caf16e4478.tar.xz
Bug 140770 - Navigation doesn't work after creating a new bug. This fix displays a new bug to the user immediately after it's been filed. Patch by gerv; r=justdave, afranke.
Diffstat (limited to 'post_bug.cgi')
-rwxr-xr-xpost_bug.cgi10
1 files changed, 8 insertions, 2 deletions
diff --git a/post_bug.cgi b/post_bug.cgi
index b6f7f5268..f66d13ee9 100755
--- a/post_bug.cgi
+++ b/post_bug.cgi
@@ -28,6 +28,7 @@ use strict;
use lib qw(.);
require "CGI.pl";
+require "bug_form.pl";
# Shut up misguided -w warnings about "used only once". For some reason,
# "use vars" chokes on me when I try it here.
@@ -302,9 +303,14 @@ $mailresults .= $_ while <PMAIL>;
close(PMAIL);
# Tell the user all about it
-$vars->{'bug_id'} = $id;
-$vars->{'mailresults'} = $mailresults;
+$vars->{'id'} = $id;
+$vars->{'mail'} = $mailresults;
+$vars->{'type'} = "created";
print "Content-type: text/html\n\n";
$template->process("bug/create/created.html.tmpl", $vars)
|| ThrowTemplateError($template->error());
+
+$::FORM{'id'} = $id;
+
+show_bug("header is already done");