summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorkarl%kornel.name <>2005-11-16 10:13:41 +0100
committerkarl%kornel.name <>2005-11-16 10:13:41 +0100
commitd6ec14acfbc6cac05e38fe2fc747bb519832260d (patch)
treebf8d2a538968e9b1879bae09a3559d434a91fa07 /Bugzilla
parent13642dbe5958968806636a75c1ffa3e056671f86 (diff)
downloadbugzilla-d6ec14acfbc6cac05e38fe2fc747bb519832260d.tar.gz
bugzilla-d6ec14acfbc6cac05e38fe2fc747bb519832260d.tar.xz
Bug 257813: CSV link from new charts gives internal error if data contains more than 1000 dates - Patch by A. Karl Kornel <karl@kornel.name> r=wicked a=justdave
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Template.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm
index 4cbca29bd..758a829af 100644
--- a/Bugzilla/Template.pm
+++ b/Bugzilla/Template.pm
@@ -221,6 +221,12 @@ sub get_format {
###############################################################################
# Templatization Code
+# The Template Toolkit throws an error if a loop iterates >1000 times.
+# We want to raise that limit.
+# NOTE: If you change this number, you MUST RE-RUN checksetup.pl!!!
+# If you do not re-run checksetup.pl, the change you make will not apply
+$Template::Directive::WHILE_MAX = 1000000;
+
# Use the Toolkit Template's Stash module to add utility pseudo-methods
# to template variables.
use Template::Stash;