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

jesse at bestpractical.com jesse at bestpractical.com
Wed May 16 12:49:04 EDT 2007


Author: jesse
Date: Wed May 16 12:49:03 2007
New Revision: 7884

Modified:
   rt/branches/3.6-RELEASE/   (props changed)
   rt/branches/3.6-RELEASE/html/Elements/TicketList

Log:
 r56926 at pinglin:  jesse | 2007-05-16 12:47:06 -0400
 * Fix for "Page 1 of 0" . Thanks to Nicholas Clark <nick at ccl4.org>


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	Wed May 16 12:49:03 2007
@@ -77,7 +77,9 @@
 % if (($TotalFound % $Rows) == 0) {
 % $oddRows = 0;
 % } else { $oddRows = 1; }
-<&|/l, $Page, int($TotalFound/$Rows)+$oddRows&>Page [_1] of [_2]</&>
+% my $pages = int($TotalFound/$Rows)+$oddRows;
+% $pages = 1 if $pages < 1;
+<&|/l, $Page, $pages &>Page [_1] of [_2]</&>
 
 <%perl>
 my $prev = $m->comp(


More information about the Rt-commit mailing list