r696: Added a "Submit and Reload" button to newreport.php
authorRobert Sesek <rsesek@bluestatic.org>
Sat, 14 Jan 2006 19:03:32 +0000 (19:03 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Sat, 14 Jan 2006 19:03:32 +0000 (19:03 +0000)
newreport.php
templates/newreport.tpl

index 4787751c2c4f9340ed2c2a8f219a6314257f1663..1dff59c94dfef61a1a6ba84340d02b6bc7ef2e8a 100755 (executable)
@@ -142,7 +142,7 @@ if ($_POST['do'] == 'insert')
        
        $db->query("INSERT INTO " . TABLE_PREFIX . "vote (bugid, votefor, voteagainst) VALUES ($bugid, 0, 0)");
        
-       $message->redirect($lang->string('The bug has been added to the database.'), "showreport.php?bugid=$bugid");
+       $message->redirect($lang->string('The bug has been added to the database.'), ($bugsys->in['submit_reload'] == '' ? "showreport.php?bugid=$bugid" : 'newreport.php'));
 }
 
 // ###################################################################
index 837fc500332f86c0e56c4eac4cacfca43c73c10b..538ef6e431f96a0a6ab082a2274a81c72427da4b 100644 (file)
@@ -108,6 +108,7 @@ $header
 <div id="submitrow">
        <input type="submit" name="submit" value="  {@"Submit Report"} " accesskey="s" />
        <input type="reset" name="reset" value="  {@"Reset Fields"}  " accesskey="r" />
+       <input type="submit" name="submit_reload" value="  {@"Submit Report and Add Another Bug"} " accesskey="s" />
 </div>
 <!-- / submit row -->