From 1821691bb1e333bed804cf7c83a363a74cb9f52a Mon Sep 17 00:00:00 2001 From: Stefan Giehl <stefan@piwik.org> Date: Mon, 29 May 2017 22:22:36 +0200 Subject: [PATCH] fix populating report values (#11745) --- .../templates/reportParametersScheduledReports.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ScheduledReports/templates/reportParametersScheduledReports.twig b/plugins/ScheduledReports/templates/reportParametersScheduledReports.twig index 19acdd9276..92d7ad52ad 100644 --- a/plugins/ScheduledReports/templates/reportParametersScheduledReports.twig +++ b/plugins/ScheduledReports/templates/reportParametersScheduledReports.twig @@ -31,7 +31,7 @@ var i, field, fields = ['displayFormat', 'emailMe', 'evolutionGraph', 'additionalEmails']; for (i in fields) { field = fields[i]; - if (report.parameters[field]) { + if (field in report.parameters) { report[field] = report.parameters[field]; } } -- GitLab