]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 140770 - Navigation doesn't work after creating a new bug. This fix displays...
authorgerv%gerv.net <>
Thu, 2 May 2002 02:00:46 +0000 (02:00 +0000)
committergerv%gerv.net <>
Thu, 2 May 2002 02:00:46 +0000 (02:00 +0000)
post_bug.cgi
template/en/default/bug/create/created.html.tmpl
template/en/default/bug/process/results.html.tmpl

index b6f7f5268bfac04662cc8ff8bb0ed0f0b6a82bf8..f66d13ee99ad276b64476c19dfd6f6cda467e4d9 100755 (executable)
@@ -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");
index 7693fdbcf4e8c9a66d884891e8ee026a246e4af9..0264413a747b221880b8d8eca0751167c8297cac 100644 (file)
   #%]
 
 [% PROCESS global/header.html.tmpl 
-  title = "Bug $bug_id Submitted"
+  title = "Bug $id Submitted"
 %]
 
-<table border="1">
-  <tr>
-    <td>
-      <h2>Bug [% bug_id %] has been added to the database.</h2>
+[% PROCESS bug/process/results.html.tmpl %]
 
-      [% mailresults %]
-      
-    </td>
-    <td>
-      <a href="show_bug.cgi?id=[% bug_id %]">Back To Bug# [% bug_id %]</a>
-    </td>
-  </tr>  
-</table>
+<br>
 
-<p>
-<a href="attachment.cgi?bugid=[% bug_id %]&amp;action=enter">
-  Attach a file to this bug</a>.
-</p>
-
-[% PROCESS bug/navigate.html.tmpl %]
-
-[% PROCESS global/footer.html.tmpl %]
+[%# post_bug.cgi will add a copy of the filed bug below here %]
index 255a7c2fffe24846ca969b06d983a44de73f18cf..99dfbc11de242c380a8da036be3bacb062498b5f 100644 (file)
 
 [% 
   title = {
-    'bug' => "Changes submitted for bug" , 
-    'dupe' => "Duplicate notation added to bug" , 
-    'dep' => "Checking for dependency changes on bug" , 
-    'votes' => "Confirmed by number of votes: bug" , 
+    'bug' => "Changes submitted for bug $id" , 
+    'dupe' => "Duplicate notation added to bug $id" , 
+    'dep' => "Checking for dependency changes on bug $id" , 
+    'votes' => "Bug $id confirmed by number of votes" , 
+    'created' => "Bug $id has been added to the database" , 
   } 
 %]
 
 <table border="1">
   <tr>
     <td>
-      <h2>[% title.$type %] [%+ id %]</h2>
+      <h2>[% title.$type %]</h2>
       [% mail %]
     </td>
     <td>