[Rt-commit] rt branch, 4.0/mobile-no-next-page-at-end, created. rt-4.0.1-128-g12183fc

Jason May jasonmay at bestpractical.com
Tue Sep 13 10:48:54 EDT 2011


The branch, 4.0/mobile-no-next-page-at-end has been created
        at  12183fc08b3dea3bf25e0f7e05d8807d10e292c8 (commit)

- Log -----------------------------------------------------------------
commit 12183fc08b3dea3bf25e0f7e05d8807d10e292c8
Author: Jason May <jasonmay at bestpractical.com>
Date:   Wed Jul 27 14:14:41 2011 -0400

    Use CountAll for total tickets in the Mobile UI ticket list
    
    CountAll does the count ignoring the RowsPerPage setting, where Count
    will be the total records in the page.
    
    Count and CountAll actually work the same here since a query isn't
    processed yet, but having CountAll here makes it easier to understand what
    the title is trying to portray (total tickets in the search regardless
    of page count).

diff --git a/share/html/m/_elements/ticket_list b/share/html/m/_elements/ticket_list
index f06cc7e..e16dc74 100644
--- a/share/html/m/_elements/ticket_list
+++ b/share/html/m/_elements/ticket_list
@@ -80,7 +80,7 @@ if ($page > 1 && ! @{$collection->ItemsArrayRef||[]}) {
 
 </%init>
 <&| /m/_elements/wrapper, title => 
-loc("Found [quant,_1,ticket]",$collection->Count) &>
+loc("Found [quant,_1,ticket]",$collection->CountAll) &>
 <&|/Widgets/TitleBox, class => 'search'
 &>
 <ul class="ticketlist">

-----------------------------------------------------------------------


More information about the Rt-commit mailing list