From ebb3e9eece63508525eb9f55463882ea5d67110b Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 14 Jan 2006 19:03:32 +0000 Subject: [PATCH] r696: Added a "Submit and Reload" button to newreport.php --- newreport.php | 2 +- templates/newreport.tpl | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/newreport.php b/newreport.php index 4787751..1dff59c 100755 --- a/newreport.php +++ b/newreport.php @@ -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')); } // ################################################################### diff --git a/templates/newreport.tpl b/templates/newreport.tpl index 837fc50..538ef6e 100644 --- a/templates/newreport.tpl +++ b/templates/newreport.tpl @@ -108,6 +108,7 @@ $header
+
-- 2.43.5