Skip to content

Commit 1766f07

Browse files
committed
MAGETWO-94671: Product Export fails
1 parent 65cfb29 commit 1766f07

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -546,14 +546,14 @@ protected function getMediaGallery(array $productIds)
546546
'mgv.store_id',
547547
]
548548
)->where(
549-
"mgvte.{$this->getProductEntityLinkField()} IN (?)",
549+
"mgvte.$productEntityJoinField IN (?)",
550550
$productIds
551551
);
552552

553553
$rowMediaGallery = [];
554554
$stmt = $this->_connection->query($select);
555555
while ($mediaRow = $stmt->fetch()) {
556-
$rowMediaGallery[$mediaRow[$this->getProductEntityLinkField()]][] = [
556+
$rowMediaGallery[$mediaRow[$productEntityJoinField]][] = [
557557
'_media_attribute_id' => $mediaRow['attribute_id'],
558558
'_media_image' => $mediaRow['filename'],
559559
'_media_label' => $mediaRow['label'],

0 commit comments

Comments
 (0)