[Rt-commit] r2765 - in rt/branches/QUEBEC-EXPERIMENTAL: . html/Elements

jesse at bestpractical.com jesse at bestpractical.com
Sun Apr 17 23:14:54 EDT 2005


Author: jesse
Date: Sun Apr 17 23:14:54 2005
New Revision: 2765

Modified:
   rt/branches/QUEBEC-EXPERIMENTAL/   (props changed)
   rt/branches/QUEBEC-EXPERIMENTAL/html/Elements/TicketList
Log:
 r13219 at hualien:  jesse | 2005-04-17 23:09:06 -0400
  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/QUEBEC-EXPERIMENTAL/html/Elements/TicketList
==============================================================================
--- rt/branches/QUEBEC-EXPERIMENTAL/html/Elements/TicketList	(original)
+++ rt/branches/QUEBEC-EXPERIMENTAL/html/Elements/TicketList	Sun Apr 17 23:14:54 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