Fix export
modifié: core/lib/Thelia/ImportExport/Export/ExportHandler.php modifié: core/lib/Thelia/Tests/ImportExport/Export/CustomerExportTest.php
This commit is contained in:
@@ -219,7 +219,10 @@ abstract class ExportHandler extends AbstractHandler
|
|||||||
$path = $model->getUploadDir() . DS . $model->getFile();
|
$path = $model->getUploadDir() . DS . $model->getFile();
|
||||||
|
|
||||||
if (is_file($path) && is_readable($path)) {
|
if (is_file($path) && is_readable($path)) {
|
||||||
$paths[$model->getTitle() . DS . $model->getFile()] = $path;
|
$parent = $model->getParentFileModel();
|
||||||
|
|
||||||
|
$name = constant($parent::TABLE_MAP . "::TABLE_NAME");
|
||||||
|
$paths[$name . DS . $model->getFile()] = $path;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -183,10 +183,8 @@ class CustomerExportTest extends \PHPUnit_Framework_TestCase
|
|||||||
sort($rowKeys);
|
sort($rowKeys);
|
||||||
|
|
||||||
$this->assertEquals($rowKeys, $keys);
|
$this->assertEquals($rowKeys, $keys);
|
||||||
|
|
||||||
++$i;
|
|
||||||
} while (
|
} while (
|
||||||
isset($rawData[$i]["ref"]) &&
|
isset($rawData[++$i]["ref"]) &&
|
||||||
$rawData[$i-1]["ref"] === $rawData[$i]["ref"] &&
|
$rawData[$i-1]["ref"] === $rawData[$i]["ref"] &&
|
||||||
++$max
|
++$max
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user