Implement export types
modifié: core/lib/Thelia/Controller/Admin/ImportExportController.php modifié: core/lib/Thelia/Core/FileFormat/Formatting/Formatter/JsonFormatter.php modifié: core/lib/Thelia/Core/FileFormat/Formatting/Formatter/XMLFormatter.php modifié: core/lib/Thelia/Core/Template/Loop/Formatter.php modifié: core/lib/Thelia/ImportExport/Export/MailingExport.php modifié: core/lib/Thelia/Model/Export.php modifié: templates/backOffice/default/export-page.html modifié: templates/backOffice/default/includes/export-form-definition.html
This commit is contained in:
@@ -90,9 +90,6 @@ class JsonFormatter extends AbstractFormatter
|
||||
|
||||
public function getExportType()
|
||||
{
|
||||
return array(
|
||||
ExportType::EXPORT_TABLE,
|
||||
ExportType::EXPORT_UNBOUNDED,
|
||||
);
|
||||
return ExportType::EXPORT_UNBOUNDED;
|
||||
}
|
||||
}
|
||||
@@ -145,9 +145,6 @@ class XMLFormatter extends AbstractFormatter
|
||||
|
||||
public function getExportType()
|
||||
{
|
||||
return array(
|
||||
ExportType::EXPORT_TABLE,
|
||||
ExportType::EXPORT_UNBOUNDED,
|
||||
);
|
||||
return ExportType::EXPORT_UNBOUNDED;
|
||||
}
|
||||
}
|
||||
@@ -46,8 +46,9 @@ class Formatter extends BaseLoop implements ArraySearchLoopInterface
|
||||
$export = ExportQuery::create()->findPk($exportId);
|
||||
|
||||
if (null !== $export) {
|
||||
$types = $export->getHandleClassInstance($this->container)
|
||||
->getHandledType();
|
||||
$handlerInstance = $export->getHandleClassInstance($this->container);
|
||||
|
||||
$types = $handlerInstance->getHandledType();
|
||||
|
||||
if (is_scalar($types)) {
|
||||
$types = [$types];
|
||||
|
||||
Reference in New Issue
Block a user