Skip to content

Commit 3ffc2e8

Browse files
committed
MC-37070: Create automated test for "Import products with shared images"
1 parent c72589d commit 3ffc2e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dev/tests/integration/testsuite/Magento/Catalog/Model/Product/Gallery/UpdateHandlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ private function duplicateMediaGalleryForProduct(string $imagePath, string $prod
565565
$linkField => $product->getData($linkField),
566566
];
567567
$connect->insert($this->galleryResource->getTable(Gallery::GALLERY_VALUE_TABLE), $rows);
568-
$rows = ['value_id' => $newValueId, 'row_id' => $product->getRowId()];
568+
$rows = ['value_id' => $newValueId, $linkField => $product->getData($linkField)];
569569
$connect->insert($this->galleryResource->getTable(Gallery::GALLERY_VALUE_TO_ENTITY_TABLE), $rows);
570570
}
571571

0 commit comments

Comments
 (0)