[Rt-commit] [svn] r1836 - in rt/branches/PLATANO-EXPERIMENTAL-CSS:
. html/Elements
jesse at pallas.eruditorum.org
jesse at pallas.eruditorum.org
Thu Nov 11 03:33:34 EST 2004
Author: jesse
Date: Thu Nov 11 03:33:34 2004
New Revision: 1836
Modified:
rt/branches/PLATANO-EXPERIMENTAL-CSS/ (props changed)
rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Elements/TicketList
Log:
r9098 at tinbook: jesse | 2004-11-11T03:00:08.493264Z
r6120 at tinbook: jesse | 2004-10-27T07:55:32.882088Z
r6109 at tinbook: jesse | 2004-10-26T20:02:02.857695Z
Additional fixes for display of unlimited search results
Modified: rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Elements/TicketList
==============================================================================
--- rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Elements/TicketList (original)
+++ rt/branches/PLATANO-EXPERIMENTAL-CSS/html/Elements/TicketList Thu Nov 11 03:33:34 2004
@@ -61,7 +61,7 @@
</TABLE>
% }
-% if ($ShowNavigation) {
+% if ($Rows && $ShowNavigation) {
<hr>
<&|/l, $Page, int($TotalFound/$Rows)+1&>Page [_1] of [_2]</&>
@@ -95,7 +95,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'});
@@ -105,14 +104,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