summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;