[Rt-commit] r6825 - in rt/branches/3.7-EXPERIMENTAL-RTIR-2.2: .

ruz at bestpractical.com ruz at bestpractical.com
Fri Jan 26 11:02:59 EST 2007


Author: ruz
Date: Fri Jan 26 11:02:59 2007
New Revision: 6825

Modified:
   rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/   (props changed)
   rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/html/Elements/TicketList

Log:
 r4301 at cubic-pc (orig r6654):  ruz | 2006-12-19 23:12:17 +0300
 * workaround problems with Page = '' or undef


Modified: rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/html/Elements/TicketList
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/html/Elements/TicketList	(original)
+++ rt/branches/3.7-EXPERIMENTAL-RTIR-2.2/html/Elements/TicketList	Fri Jan 26 11:02:59 2007
@@ -2,7 +2,7 @@
 %# 
 %# COPYRIGHT:
 %#  
-%# This software is Copyright (c) 1996-2005 Best Practical Solutions, LLC 
+%# This software is Copyright (c) 1996-2006 Best Practical Solutions, LLC 
 %#                                          <jesse at bestpractical.com>
 %# 
 %# (Except where explicitly superseded by other copyright notices)
@@ -123,6 +123,7 @@
 }
 
 $Collection->RowsPerPage( $Rows ) if $Rows;
+$Page = 1 unless $Page && $Page > 0; # workaround problems with Page = '' or undef
 $Collection->GotoPage( $Page - 1 ); # SB uses page 0 as the first page
 
 # DisplayFormat lets us use a "temporary" format for display, while 


More information about the Rt-commit mailing list