From: karl%kornel.name <> Date: Wed, 16 Nov 2005 09:13:43 +0000 (+0000) Subject: Bug 257813: CSV link from new charts gives internal error if data contains more than... X-Git-Tag: bugzilla-2.20.1~91 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abf81f322f9586be0f69e6db6fe56b2eb735079c;p=thirdparty%2Fbugzilla.git Bug 257813: CSV link from new charts gives internal error if data contains more than 1000 dates - Patch by A. Karl Kornel r=wicked a=justdave --- diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index 7efd3a16e5..84231f6a14 100644 --- a/Bugzilla/Template.pm +++ b/Bugzilla/Template.pm @@ -134,6 +134,12 @@ sub getTemplateIncludePath () { ############################################################################### # 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;