From ee5c127af54e191b9b72374cfd4d42b859c9cda1 Mon Sep 17 00:00:00 2001 From: jean Date: Wed, 14 Aug 2013 08:01:28 +1200 Subject: [PATCH] BUGFIX Avoid script timeout when exporting a large amount of submissions to CSV --- code/formfields/SubmittedFormReportField.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/formfields/SubmittedFormReportField.php b/code/formfields/SubmittedFormReportField.php index 8686be4..d794672 100755 --- a/code/formfields/SubmittedFormReportField.php +++ b/code/formfields/SubmittedFormReportField.php @@ -77,6 +77,8 @@ class SubmittedFormReportField extends FormField { * @return HTTPResponse / bool */ public function export($id = false) { + // The default max execution time is sometimes not enough for large number of submissions + increase_time_limit_to(600); if($id && is_int($id)) { $SQL_ID = $id; }