Skip to content
This repository has been archived by the owner on May 20, 2019. It is now read-only.

Commit

Permalink
MAGETWO-94671: Product Export fails
Browse files Browse the repository at this point in the history
  • Loading branch information
vzabaznov committed Oct 10, 2018
1 parent 65cfb29 commit 1766f07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/code/Magento/CatalogImportExport/Model/Export/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -546,14 +546,14 @@ protected function getMediaGallery(array $productIds)
'mgv.store_id',
]
)->where(
"mgvte.{$this->getProductEntityLinkField()} IN (?)",
"mgvte.$productEntityJoinField IN (?)",
$productIds
);

$rowMediaGallery = [];
$stmt = $this->_connection->query($select);
while ($mediaRow = $stmt->fetch()) {
$rowMediaGallery[$mediaRow[$this->getProductEntityLinkField()]][] = [
$rowMediaGallery[$mediaRow[$productEntityJoinField]][] = [
'_media_attribute_id' => $mediaRow['attribute_id'],
'_media_image' => $mediaRow['filename'],
'_media_label' => $mediaRow['label'],
Expand Down

0 comments on commit 1766f07

Please sign in to comment.