cvs: php-bugs-web / report.php

[email protected] ("Philip Olson")
Newsgroups php.webmaster
Message-ID <cvsphilip1202763913@cvsserver>
philip		Mon Feb 11 21:05:13 2008 UTC

  Modified files:              
    /php-bugs-web	report.php 
  Log:
  Allow passing in a default bug_type (e.g., report.php?bug_type=Documentation+problem)
  
  
http://cvs.php.net/viewvc.cgi/php-bugs-web/report.php?r1=1.68&r2=1.69&diff_format=u
Index: php-bugs-web/report.php
diff -u php-bugs-web/report.php:1.68 php-bugs-web/report.php:1.69
--- php-bugs-web/report.php:1.68	Tue Feb 27 18:41:15 2007
+++ php-bugs-web/report.php	Mon Feb 11 21:05:13 2008
@@ -217,6 +217,9 @@
 
 if (!isset($in)) {
     commonHeader("Report - New");
+
+    // Allow passing in a default bug_type (e.g., report.php?bug_type=Documentation+problem)
+    $default_bug_type = isset($_GET['bug_type']) ? clean($_GET['bug_type']) : '';
 ?>
 
 <p>Before you report a bug, make sure to search for similar bugs using the form
@@ -263,7 +266,7 @@
  </tr><tr>
   <th align="right">Type of bug:</th>
   <td colspan="2">
-    <select name="in[bug_type]"><?php show_types($in['bug_type'],0);?></select>
+    <select name="in[bug_type]"><?php show_types($in['bug_type'],0,$default_bug_type);?></select>
   </td>
  </tr><tr>
   <th align="right">Operating system:</th>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.