Update of /cvsroot/mantisbt/mantisbt/core
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv9860/core
Modified Files:
filter_api.php
Log Message:
Fixed #6900: 'Show' filter parameter set automatically according to the result
of the issued query.
Index: filter_api.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/core/filter_api.php,v
retrieving revision 1.145
retrieving revision 1.146
diff -u -d -r1.145 -r1.146
--- filter_api.php 31 Oct 2006 08:43:58 -0000 1.145
+++ filter_api.php 17 Dec 2006 10:55:39 -0000 1.146
@@ -827,10 +827,10 @@
# Guard against silly values of $f_per_page.
if ( 0 == $p_per_page ) {
- $p_per_page = 1;
+ $p_per_page = $bug_count; // 0 - means show all
}
- $p_per_page = (int)abs( $p_per_page );
+ $p_per_page = (int)abs( $p_per_page );
# Use $bug_count and $p_per_page to determine how many pages
# to split this list up into.
@@ -1758,7 +1758,7 @@
</tr>
<tr class="row-1">
<td class="small-caption" valign="top"
id="per_page_filter_target">
- <?php PRINT $t_filter['per_page']; ?>
+ <?php echo ( $t_filter['per_page'] == 0 ) ?
lang_get( 'all' ) : $t_filter['per_page']; ?>
<input type="hidden" name="per_page"
value="<?php echo $t_filter['per_page'];?>" />
</td>
<td class="small-caption" valign="top"
id="view_state_filter_target">
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
|