|
From: Ulf E. <ulf...@us...> - 2005-09-22 20:51:59
|
Update of /cvsroot/phpbt/phpbt In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30438 Modified Files: bug.php Log Message: Fix to recall posinfo after visiting bughistory and bugvotes Index: bug.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/bug.php,v retrieving revision 1.147 retrieving revision 1.148 diff -u -r1.147 -r1.148 --- bug.php 20 Sep 2005 18:49:39 -0000 1.147 +++ bug.php 22 Sep 2005 20:51:49 -0000 1.148 @@ -29,6 +29,13 @@ function vote_view($bug_id) { global $u, $db, $t; + if (isset($_REQUEST['pos']) && is_numeric($_REQUEST['pos'])) { + $posinfo = "&pos={$_REQUEST['pos']}"; + } else { + $posinfo = ''; + } + $t->assign(array('posinfo' => $posinfo)); + $t->assign('votes', $db->getAll('select login, v.created_date '.'from '.TBL_AUTH_USER.' u, '.TBL_BUG_VOTE." v where u.user_id = v.user_id and bug_id = $bug_id order by v.created_date")); $t->render('bugvotes.html', translate("Bug Votes")); } @@ -66,8 +73,8 @@ do_changedfields($u, $buginfo, $changedfields); } } - if (isset($_POST['pos'])) { - $posinfo = "&pos={$_POST['pos']}"; + if (isset($_REQUEST['pos']) && is_numeric($_REQUEST['pos'])) { + $posinfo = "&pos={$_REQUEST['pos']}"; } else { $posinfo = ''; } @@ -133,6 +140,13 @@ return; } + if (isset($_REQUEST['pos']) && is_numeric($_REQUEST['pos'])) { + $posinfo = "&pos={$_REQUEST['pos']}"; + } else { + $posinfo = ''; + } + $t->assign(array('posinfo' => $posinfo)); + $t->assign('history', $db->getAll(sprintf($QUERY['bug-history'], $db->quote($bugid)))); $t->render('bughistory.html', translate("Bug History")); } @@ -724,6 +738,13 @@ 'comments' => $db->getAll('select comment_text, c.created_date, login'.' from '.TBL_COMMENT.' c, '.TBL_AUTH_USER." where bug_id = $bugid and c.created_by = user_id order by c.created_date") )); + if (isset($_REQUEST['pos']) && is_numeric($_REQUEST['pos'])) { + $posinfo = "&pos={$_REQUEST['pos']}"; + } else { + $posinfo = ''; + } + $t->assign(array('posinfo' => $posinfo)); + $t->render('bugdisplay.html', translate("View Bug")); } |