[Rt-commit] r6852 - in rt/branches/3.7-EXPERIMENTAL-RTIR-2.2: html/Search

ruz at bestpractical.com ruz at bestpractical.com
Fri Jan 26 14:02:46 EST 2007


Author: ruz
Date: Fri Jan 26 14:02:46 2007
New Revision: 6852

Modified:
   rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/   (props changed)
   rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/html/Search/Results.html

Log:
 r4421 at cubic-pc (orig r6781):  jesse | 2007-01-19 22:05:37 +0300
  r21115 at hualien:  jesse | 2007-01-19 14:04:50 -0500
  * A fix for "unlimited rows" searches from James Bunch
 


Modified: rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/html/Search/Results.html
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/html/Search/Results.html	(original)
+++ rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/html/Search/Results.html	Fri Jan 26 14:02:46 2007
@@ -99,16 +99,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