[Rt-commit] [svn] r1691 - in rt/branches/3.2-RELEASE: .
html/Elements
jesse at pallas.eruditorum.org
jesse at pallas.eruditorum.org
Tue Oct 26 16:23:25 EDT 2004
Author: jesse
Date: Tue Oct 26 16:23:24 2004
New Revision: 1691
Modified:
rt/branches/3.2-RELEASE/ (props changed)
rt/branches/3.2-RELEASE/html/Elements/TicketList
Log:
r6109 at tinbook: jesse | 2004-10-26T20:02:02.857695Z
Additional fixes for display of unlimited search results
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 Tue Oct 26 16:23:24 2004
@@ -55,7 +55,7 @@
</TABLE>
% }
-% if ($ShowNavigation) {
+% if ($Rows && $ShowNavigation) {
<hr>
<&|/l, $Page, int($TotalFound/$Rows)+1&>Page [_1] of [_2]</&>
@@ -89,7 +89,6 @@
# Scrub the html of the format string to remove any potential nasties.
$Format = $m->comp('/Elements/ScrubHTML', Content => $Format);
-$Rows ||= '25'; # we need a positive value
unless ($Collection) {
$Collection = RT::Tickets->new($session{'CurrentUser'});
@@ -99,14 +98,14 @@
my (@Format) = $m->comp('/Elements/CollectionAsTable/ParseFormat', Format => $Format);
$Collection->OrderBy(FIELD => $OrderBy, ORDER => $Order);
-$Collection->RowsPerPage($Rows);
+$Collection->RowsPerPage($Rows) if ($Rows);
$Collection->GotoPage($Page-1); # SB uses page 0 as the first page
my $TotalFound = $Collection->CountAll();
</%INIT>
<%ARGS>
$Query => undef
-$Rows => 10
+$Rows => 50
$Page => 1
$Title => 'Ticket Search'
$Collection => undef
More information about the Rt-commit
mailing list