From 5d59f5001ad8cfe316f9e1570f8ebbdad08b9261 Mon Sep 17 00:00:00 2001 From: Valentina Da Rold Date: Wed, 2 Oct 2019 10:13:45 +0200 Subject: [PATCH] Add autosubmit class to Timeframe field in ReportForm --- library/Reporting/Web/Forms/ReportForm.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/Reporting/Web/Forms/ReportForm.php b/library/Reporting/Web/Forms/ReportForm.php index f54f7031..6729efb7 100644 --- a/library/Reporting/Web/Forms/ReportForm.php +++ b/library/Reporting/Web/Forms/ReportForm.php @@ -36,7 +36,8 @@ protected function assemble() $this->addElement('select', 'timeframe', [ 'required' => true, 'label' => 'Timeframe', - 'options' => [null => 'Please choose'] + $this->listTimeframes() + 'options' => [null => 'Please choose'] + $this->listTimeframes(), + 'class' => 'autosubmit' ]); $this->addElement('select', 'reportlet', [