diff options
author | ivan <ivan> | 2007-06-20 22:35:55 +0000 |
---|---|---|
committer | ivan <ivan> | 2007-06-20 22:35:55 +0000 |
commit | 762bac943dcb5ab1315cb767ff02ca425f010ffc (patch) | |
tree | 1eea0bc8a1f40dcc5dba2341eaf10d3e3eff5759 /rt/html | |
parent | f5af4fcceb8a36c3d0885dfa197798a77de64727 (diff) |
add $RT::MyTicketsLength patch from spiritone, part of merging RT changes (#1661)
Diffstat (limited to 'rt/html')
-rw-r--r-- | rt/html/Elements/TicketList | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/rt/html/Elements/TicketList b/rt/html/Elements/TicketList index 1a531274f..4195d6320 100644 --- a/rt/html/Elements/TicketList +++ b/rt/html/Elements/TicketList @@ -62,8 +62,10 @@ % my $i; % while (my $record = $Collection->Next) { % $i++; -% # Every ten rows, flush the buffer and put something on the page. -% $m->flush_buffer() unless ($i % 10); +% # Every $RT::MyTicketsLength or ten rows, flush the buffer and put something +% # on the page. +% my $flushrows = $RT::MyTicketsLength || 10; +% $m->flush_buffer() unless ($i % $flushrows); <& /Elements/CollectionAsTable/Row, Format => \@Format, i => $i, record => $record, maxitems => $maxitems &> % } |