[Rt-commit] r13620 - in rt/3.8/trunk: share/html/Search

kyoki at bestpractical.com kyoki at bestpractical.com
Thu Jun 26 17:59:58 EDT 2008


Author: kyoki
Date: Thu Jun 26 17:59:58 2008
New Revision: 13620

Modified:
   rt/3.8/trunk/   (props changed)
   rt/3.8/trunk/share/html/Search/Results.html

Log:
 r23390 at nyx:  kyoki | 2008-06-26 17:59:53 -0400
 "Unlimited" option for number of rows now works


Modified: rt/3.8/trunk/share/html/Search/Results.html
==============================================================================
--- rt/3.8/trunk/share/html/Search/Results.html	(original)
+++ rt/3.8/trunk/share/html/Search/Results.html	Thu Jun 26 17:59:58 2008
@@ -106,7 +106,7 @@
 # We call it RowsPerPage everywhere else.
 
 if ( !defined($Rows) ) {
-    if ( $ARGS{'RowsPerPage'} ) {
+    if (defined $ARGS{'RowsPerPage'} ) {
         $Rows = $ARGS{'RowsPerPage'};
     } elsif ( defined $prefs->{'RowsPerPage'} ) {
         $Rows = $prefs->{'RowsPerPage'};
@@ -179,7 +179,7 @@
 $link_rel{first} = $BaseURL . $genpage->(1)         if $Page > 1;
 $link_rel{prev}  = $BaseURL . $genpage->($Page - 1) if $Page > 1;
 $link_rel{next}  = $BaseURL . $genpage->($Page + 1) if ($Page * $Rows) < $ticketcount;
-$link_rel{last}  = $BaseURL . $genpage->(POSIX::ceil($ticketcount/$Rows)) if ($Page * $Rows) < $ticketcount;
+$link_rel{last}  = $BaseURL . $genpage->(POSIX::ceil($ticketcount/$Rows)) if $Rows and ($Page * $Rows) < $ticketcount;
 </%INIT>
 <%CLEANUP>
 $session{'tickets'}->PrepForSerialization();


More information about the Rt-commit mailing list