File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
app/code/Magento/CatalogImportExport/Model/Export Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -351,6 +351,7 @@ class Product extends \Magento\ImportExport\Model\Export\Entity\AbstractEntity
351
351
352
352
/**
353
353
* Product constructor.
354
+ *
354
355
* @param \Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate
355
356
* @param \Magento\Eav\Model\Config $config
356
357
* @param \Magento\Framework\App\ResourceConnection $resource
@@ -941,15 +942,17 @@ protected function getExportData()
941
942
protected function loadCollection (): array
942
943
{
943
944
$ data = [];
944
-
945
945
$ collection = $ this ->_getEntityCollection ();
946
946
foreach (array_keys ($ this ->_storeIdToCode ) as $ storeId ) {
947
+ $ collection ->setOrder ('entity_id ' , 'asc ' );
948
+ $ this ->_prepareEntityCollection ($ collection );
947
949
$ collection ->setStoreId ($ storeId );
950
+ $ collection ->load ();
948
951
foreach ($ collection as $ itemId => $ item ) {
949
952
$ data [$ itemId ][$ storeId ] = $ item ;
950
953
}
954
+ $ collection ->clear ();
951
955
}
952
- $ collection ->clear ();
953
956
954
957
return $ data ;
955
958
}
You can’t perform that action at this time.
0 commit comments