projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f5af4fc
)
add $RT::MyTicketsLength patch from spiritone, part of merging RT changes (#1661)
author
ivan
<ivan>
Wed, 20 Jun 2007 22:35:55 +0000
(22:35 +0000)
committer
ivan
<ivan>
Wed, 20 Jun 2007 22:35:55 +0000
(22:35 +0000)
rt/etc/RT_SiteConfig.pm
patch
|
blob
|
history
rt/html/Elements/TicketList
patch
|
blob
|
history
diff --git
a/rt/etc/RT_SiteConfig.pm
b/rt/etc/RT_SiteConfig.pm
index
affd36b
..
56d7e26
100644
(file)
--- 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::WebFallbackToInternal = 1; #no
$RT::WebExternalAuto = 1;
+$RT::MyTicketsLength = 10;
+
$RT::URI::freeside::IntegrationType = 'Internal';
$RT::URI::freeside::URL = '%%%FREESIDE_URL%%%';
$RT::URI::freeside::IntegrationType = 'Internal';
$RT::URI::freeside::URL = '%%%FREESIDE_URL%%%';
diff --git
a/rt/html/Elements/TicketList
b/rt/html/Elements/TicketList
index
1a53127
..
4195d63
100644
(file)
--- a/
rt/html/Elements/TicketList
+++ b/
rt/html/Elements/TicketList
@@
-62,8
+62,10
@@
% my $i;
% while (my $record = $Collection->Next) {
% $i++;
% 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 &>
% }
<& /Elements/CollectionAsTable/Row, Format => \@Format, i => $i, record => $record, maxitems => $maxitems &>
% }