add $RT::MyTicketsLength patch from spiritone, part of merging RT changes (#1661)
authorivan <ivan>
Wed, 20 Jun 2007 22:35:55 +0000 (22:35 +0000)
committerivan <ivan>
Wed, 20 Jun 2007 22:35:55 +0000 (22:35 +0000)
rt/etc/RT_SiteConfig.pm
rt/html/Elements/TicketList

index affd36b..56d7e26 100644 (file)
@@ -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%%%';
 
index 1a53127..4195d63 100644 (file)
 %   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 &>
 %   }