Delete exports and imports where the class is not valid
modifié: core/lib/Thelia/Core/Template/Loop/ImportExportType.php modifié: core/lib/Thelia/Model/Export.php modifié: core/lib/Thelia/Model/Import.php
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
namespace Thelia\Core\Template\Loop;
|
||||
use Propel\Runtime\ActiveQuery\Criteria;
|
||||
use Propel\Runtime\ActiveQuery\ModelCriteria;
|
||||
use Propel\Runtime\Exception\ClassNotFoundException;
|
||||
use Thelia\Core\Template\Element\BaseI18nLoop;
|
||||
use Thelia\Core\Template\Element\LoopResult;
|
||||
use Thelia\Core\Template\Element\LoopResultRow;
|
||||
@@ -48,15 +49,20 @@ abstract class ImportExportType extends BaseI18nLoop implements PropelSearchLoop
|
||||
$this->getBaseUrl() . DS . $type->getId()
|
||||
);
|
||||
|
||||
$loopResultRow
|
||||
->set("ID", $type->getId())
|
||||
->set("TITLE", $type->getVirtualColumn("i18n_TITLE"))
|
||||
->set("DESCRIPTION", $type->getVirtualColumn("i18n_DESCRIPTION"))
|
||||
->set("URL", $url)
|
||||
->set("POSITION", $type->getPosition())
|
||||
->set("CATEGORY_ID", $type->getByName($this->getCategoryName()))
|
||||
->set("HANDLE_CLASS", $type->getHandleClass())
|
||||
;
|
||||
try {
|
||||
$loopResultRow
|
||||
->set("HANDLE_CLASS", $type->getHandleClass())
|
||||
->set("ID", $type->getId())
|
||||
->set("TITLE", $type->getVirtualColumn("i18n_TITLE"))
|
||||
->set("DESCRIPTION", $type->getVirtualColumn("i18n_DESCRIPTION"))
|
||||
->set("URL", $url)
|
||||
->set("POSITION", $type->getPosition())
|
||||
->set("CATEGORY_ID", $type->getByName($this->getCategoryName()))
|
||||
;
|
||||
} catch(ClassNotFoundException $e) {
|
||||
|
||||
} catch(\ErrorException $e) {}
|
||||
|
||||
|
||||
$loopResult->addRow($loopResultRow);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user