[Rt-commit] r6781 - in rt/branches/3.6-RELEASE: .

jesse at bestpractical.com jesse at bestpractical.com
Fri Jan 19 14:05:38 EST 2007


Author: jesse
Date: Fri Jan 19 14:05:37 2007
New Revision: 6781

Modified:
   rt/branches/3.6-RELEASE/   (props changed)
   rt/branches/3.6-RELEASE/html/Search/Results.html

Log:
 r21115 at hualien:  jesse | 2007-01-19 14:04:50 -0500
 * A fix for "unlimited rows" searches from James Bunch


Modified: rt/branches/3.6-RELEASE/html/Search/Results.html
==============================================================================
--- rt/branches/3.6-RELEASE/html/Search/Results.html	(original)
+++ rt/branches/3.6-RELEASE/html/Search/Results.html	Fri Jan 19 14:05:37 2007
@@ -103,16 +103,16 @@
 
 # Some forms pass in "RowsPerPage" rather than "Rows"
 # We call it RowsPerPage everywhere else.
-if ( !$Rows && $ARGS{'RowsPerPage'} ) {
-    $Rows = $ARGS{'RowsPerPage'};
-}
-elsif ( !$Rows && defined $prefs->{'RowsPerPage'} ) {
-    $Rows = $prefs->{'RowsPerPage'};
-}
-else {
-    $Rows ||= 50;
-}
 
+if ( !defined($Rows) ) {
+    if ( $ARGS{'RowsPerPage'} ) {
+        $Rows = $ARGS{'RowsPerPage'};
+    } elsif ( defined $prefs->{'RowsPerPage'} ) {
+        $Rows = $prefs->{'RowsPerPage'};
+    } else {
+        $Rows ||= 50;
+    }
+}
 
 my ($title, $ticketcount);
 $session{'i'}++;


More information about the Rt-commit mailing list