[Rt-commit] r2748 - in rt/branches/3.4-RELEASE: . html/Elements

jesse at bestpractical.com jesse at bestpractical.com
Sun Apr 17 21:58:20 EDT 2005


Author: jesse
Date: Sun Apr 17 21:58:19 2005
New Revision: 2748

Modified:
   rt/branches/3.4-RELEASE/   (props changed)
   rt/branches/3.4-RELEASE/html/Elements/TicketList
Log:
 r13206 at hualien:  jesse | 2005-04-17 21:54:10 -0400
  r13204 at hualien:  jesse | 2005-04-17 21:52:15 -0400
 RT-Ticket: 6603
 RT-Status: resolved
 RT-Update: correspond
  
 * RT used to report an improper total number of pages if the number of 
   results found was evenly divisible by the number of rows per page
  
 


Modified: rt/branches/3.4-RELEASE/html/Elements/TicketList
==============================================================================
--- rt/branches/3.4-RELEASE/html/Elements/TicketList	(original)
+++ rt/branches/3.4-RELEASE/html/Elements/TicketList	Sun Apr 17 21:58:19 2005
@@ -71,7 +71,11 @@
 
 % if ($Rows && $ShowNavigation) {
 <hr>
-<&|/l, $Page, int($TotalFound/$Rows)+1&>Page [_1] of [_2]</&>
+% my $oddRows;
+% if (($TotalFound % $Rows) == 0) {
+% $oddRows = 0;
+% } else { $oddRows = 1; }
+<&|/l, $Page, int($TotalFound/$Rows)+$oddRows&>Page [_1] of [_2]</&>
 
 <%perl>
 my $prev = $m->comp(


More information about the Rt-commit mailing list