Skip to content

Commit e1827c6

Browse files
committed
Merge remote-tracking branch 'epam/EPAM-PR-39' into EPAM-PR-38-39-40
2 parents c92c640 + b5d129f commit e1827c6

File tree

1 file changed

+5
-2
lines changed
  • app/code/Magento/CatalogImportExport/Model/Export

1 file changed

+5
-2
lines changed

app/code/Magento/CatalogImportExport/Model/Export/Product.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ class Product extends \Magento\ImportExport\Model\Export\Entity\AbstractEntity
351351

352352
/**
353353
* Product constructor.
354+
*
354355
* @param \Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate
355356
* @param \Magento\Eav\Model\Config $config
356357
* @param \Magento\Framework\App\ResourceConnection $resource
@@ -941,15 +942,17 @@ protected function getExportData()
941942
protected function loadCollection(): array
942943
{
943944
$data = [];
944-
945945
$collection = $this->_getEntityCollection();
946946
foreach (array_keys($this->_storeIdToCode) as $storeId) {
947+
$collection->setOrder('entity_id', 'asc');
948+
$this->_prepareEntityCollection($collection);
947949
$collection->setStoreId($storeId);
950+
$collection->load();
948951
foreach ($collection as $itemId => $item) {
949952
$data[$itemId][$storeId] = $item;
950953
}
954+
$collection->clear();
951955
}
952-
$collection->clear();
953956

954957
return $data;
955958
}

0 commit comments

Comments
 (0)