diff --git a/pages/ajax.csvimport.php b/pages/ajax.csvimport.php index cb6690e53..de1faef78 100644 --- a/pages/ajax.csvimport.php +++ b/pages/ajax.csvimport.php @@ -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');