|
From: Jirka P. <fi...@us...> - 2002-05-06 13:29:52
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv5166/phpbt
Modified Files:
bug.php
Log Message:
Project ID missing due to using "get vars" in show_form vs. "post vars" in do_form. Repaired bug 551256.
Index: bug.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/bug.php,v
retrieving revision 1.100
retrieving revision 1.101
diff -u -r1.100 -r1.101
--- bug.php 5 May 2002 16:24:46 -0000 1.100
+++ bug.php 6 May 2002 13:17:29 -0000 1.101
@@ -383,15 +383,20 @@
}
function do_form($bugid = 0) {
- global $db, $me, $u, $_pv, $STRING, $now, $HTTP_SERVER_VARS;
+ global $db, $me, $u, $_pv, $_gv, $STRING, $now, $HTTP_SERVER_VARS;
$error = '';
// Validation
- if (!$_pv['title'] = htmlspecialchars(trim($_pv['title'])))
+ if (!$_pv['title'] = htmlspecialchars(trim($_pv['title']))) {
$error = $STRING['givesummary'];
- elseif (!$_pv['description'] = htmlspecialchars(trim($_pv['description'])))
+ } elseif (!$_pv['description'] = htmlspecialchars(trim($_pv['description']))) {
$error = $STRING['givedesc'];
- if ($error) { show_form($bugid, $error); return; }
+ }
+ if ($error) {
+ $_gv['project'] = $_pv['project'];
+ show_form($bugid, $error);
+ return;
+ }
while (list($k,$v) = each($_pv)) $$k = $v;
|