logo       

mantisbt/core filter_api.php,1.145,1.146: msg#00024

Subject: mantisbt/core filter_api.php,1.145,1.146
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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
audio.irate.dev...    yellowdog.gener...    ietf.ips/2002-0...    xfree86.fonts/2...    busybox/2003-07...    emacs.jdee/2004...    linux.mandrake....    hardware.microc...    user-groups.lin...    science.analysi...    version-control...    db.filemaker.de...    cluster.openmos...    mail.eyebrowse....    text.xml.xerces...    kde.devel.kwrit...    finance.moneyda...    gcc.regression/...    network.routing...    os.freebsd.deve...    recreation.radi...    qnx.openqnx.dev...    python.xml/2002...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe