[Rt-commit] r2747 - in rt/branches/3.2-RELEASE: . html/Elements

jesse at bestpractical.com jesse at bestpractical.com
Sun Apr 17 21:53:13 EDT 2005


Author: jesse
Date: Sun Apr 17 21:53:13 2005
New Revision: 2747

Modified:
   rt/branches/3.2-RELEASE/   (props changed)
   rt/branches/3.2-RELEASE/html/Elements/TicketList
Log:
 r13204 at hualien:  jesse | 2005-04-17 21:52:15 -0400
 RT-Ticket: 603
 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.2-RELEASE/html/Elements/TicketList
==============================================================================
--- rt/branches/3.2-RELEASE/html/Elements/TicketList	(original)
+++ rt/branches/3.2-RELEASE/html/Elements/TicketList	Sun Apr 17 21:53:13 2005
@@ -57,7 +57,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('/Elements/QueryString',


More information about the Rt-commit mailing list