diff --git a/core/lib/Thelia/Controller/Admin/ImportExportController.php b/core/lib/Thelia/Controller/Admin/ImportExportController.php index 61394415d..8bed0dbab 100644 --- a/core/lib/Thelia/Controller/Admin/ImportExportController.php +++ b/core/lib/Thelia/Controller/Admin/ImportExportController.php @@ -115,16 +115,16 @@ class ImportExportController extends BaseAdminController $boundForm->get("formatter")->getData() ); + /** + * Build an event containing the formatter and the handler. + * Used for specific configuration (e.g: XML node names) + */ + $event = new ExportEvent($formatter, $handler); + $filename = $formatter::FILENAME . "." . $formatter->getExtension(); if (!$boundForm->get("do_compress")->getData()) { - /** - * Build an event containing the formatter and the handler. - * Used for specific configuration (e.g: XML node names) - */ - $event = new ExportEvent($formatter, $handler); - if (!$boundForm->get("do_compress")->getData()) { /** * Dispatch the event