cvs: php-bugs-web / report.php
| From: | Philip Olson | Date: | Mon, 11 Feb 2008 21:05:13 +0000 |
| Subject: | cvs: php-bugs-web / report.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-1037@lists.php.net to get a copy of this message | ||
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>