From: B. P. <bpf...@us...> - 2004-12-13 17:04:04
|
Update of /cvsroot/mantisbt/mantisbt In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28607 Modified Files: view_all_bug_page.php Log Message: Sticky issues patch rev. 1.1 Index: view_all_bug_page.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/view_all_bug_page.php,v retrieving revision 1.57 retrieving revision 1.58 diff -u -d -r1.57 -r1.58 --- view_all_bug_page.php 12 Dec 2004 20:39:44 -0000 1.57 +++ view_all_bug_page.php 13 Dec 2004 17:03:56 -0000 1.58 @@ -29,16 +29,18 @@ $t_bug_count = null; $t_page_count = null; + if ( 1 == $f_page_number ) { + $sticky_rows = filter_get_bug_rows( $f_page_number, $t_per_page, $t_page_count, $t_bug_count, null, null, null, true ); + if ( $sticky_rows === false ) { + print_header_redirect( 'view_all_set.php?type=0' ); + } + } + $rows = filter_get_bug_rows( $f_page_number, $t_per_page, $t_page_count, $t_bug_count ); if ( $rows === false ) { print_header_redirect( 'view_all_set.php?type=0' ); } - $sticky_rows = filter_get_bug_rows( $f_page_number, $t_per_page, $t_page_count, $t_bug_count, null, null, null, true ); - if ( $sticky_rows === false ) { - print_header_redirect( 'view_all_set.php?type=0' ); - } - $t_bugslist = Array(); for($i=0; $i < sizeof( $rows ); $i++) { array_push($t_bugslist, $rows[$i]["id"] ); |