Working on scheduled reports

This commit is contained in:
Hillel Coren 2017-11-23 13:42:58 +02:00
parent 92936246aa
commit 415bab8cf4
2 changed files with 3 additions and 1 deletions

View File

@ -78,7 +78,7 @@ class RunReport extends Job
'endDate' => $endDate, 'endDate' => $endDate,
'report' => $report, 'report' => $report,
]; ];
$report->exportParams = array_merge($params, $report->results()); $report->exportParams = array_merge($params, $report->results());
return $report; return $report;

View File

@ -436,6 +436,7 @@
$('#format').change(function() { $('#format').change(function() {
var val = $('#format').val(); var val = $('#format').val();
$('#scheduleButton').prop('disabled', val == 'zip');
if (isStorageSupported() && val != 'zip') { if (isStorageSupported() && val != 'zip') {
localStorage.setItem('last:report_format', val); localStorage.setItem('last:report_format', val);
} }
@ -446,6 +447,7 @@
setFiltersShown(); setFiltersShown();
setDocumentZipShown(); setDocumentZipShown();
setScheduleButton(); setScheduleButton();
$('#scheduleButton').prop('disabled', $('#format').val() == 'zip');
if (isStorageSupported()) { if (isStorageSupported()) {
localStorage.setItem('last:report_type', val); localStorage.setItem('last:report_type', val);
} }