From 762bac943dcb5ab1315cb767ff02ca425f010ffc Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 20 Jun 2007 22:35:55 +0000 Subject: [PATCH] add $RT::MyTicketsLength patch from spiritone, part of merging RT changes (#1661) --- rt/etc/RT_SiteConfig.pm | 2 ++ rt/html/Elements/TicketList | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/rt/etc/RT_SiteConfig.pm b/rt/etc/RT_SiteConfig.pm index affd36bb3..56d7e26c7 100644 --- a/rt/etc/RT_SiteConfig.pm +++ b/rt/etc/RT_SiteConfig.pm @@ -28,6 +28,8 @@ $RT::WebExternalAuth = 1; $RT::WebFallbackToInternal = 1; #no $RT::WebExternalAuto = 1; +$RT::MyTicketsLength = 10; + $RT::URI::freeside::IntegrationType = 'Internal'; $RT::URI::freeside::URL = '%%%FREESIDE_URL%%%'; 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 &> % } -- 2.11.0