N°4747 - Broken XLSX Templates created

This commit is contained in:
acognet
2022-02-14 15:23:10 +01:00
parent 16be8fd3d3
commit ba71c1bcd5

View File

@@ -404,7 +404,7 @@ EOF
if ($sDisposition == 'attachment') {
switch ($sFormat) {
case 'xlsx':
$oPage = new AjaxPage("");
$oPage = new DownloadPage("");
$oPage->SetContentType('application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
$oPage->SetContentDisposition('attachment', $sClassDisplayName.'.xlsx');
require_once(APPROOT.'/application/excelexporter.class.inc.php');