[Rt-commit] r6654 - rt/branches/3.6-RELEASE/html/Elements
ruz at bestpractical.com
ruz at bestpractical.com
Tue Dec 19 15:12:18 EST 2006
Author: ruz
Date: Tue Dec 19 15:12:17 2006
New Revision: 6654
Modified:
rt/branches/3.6-RELEASE/html/Elements/TicketList
Log:
* workaround problems with Page = '' or undef
Modified: rt/branches/3.6-RELEASE/html/Elements/TicketList
==============================================================================
--- rt/branches/3.6-RELEASE/html/Elements/TicketList (original)
+++ rt/branches/3.6-RELEASE/html/Elements/TicketList Tue Dec 19 15:12:17 2006
@@ -152,7 +152,8 @@
}
$Collection->RowsPerPage($Rows) if ($Rows);
-$Collection->GotoPage($Page-1); # SB uses page 0 as the first page
+$Page = 1 unless $Page > 0; # workaround problems with Page = '' or undef
+$Collection->GotoPage( $Page - 1 ); # SB uses page 0 as the first page
my $TotalFound = $Collection->CountAll();
</%INIT>
More information about the Rt-commit
mailing list