Skip to content

Commit 10ff567

Browse files
committed
MAGETWO-47800: Sample Data Fix
1 parent 7b1493f commit 10ff567

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/CatalogSampleData/Model/Product

1 file changed

+1
-1
lines changed

app/code/Magento/CatalogSampleData/Model/Product/Gallery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ protected function storeImage($product, $images)
152152
$table = $imageAttribute->getBackend()->getTable();
153153
/** @var \Magento\Framework\DB\Adapter\AdapterInterface $adapter*/
154154
$data = [
155-
$attribute->getBackend()->getEntityIdField() => $product->getId(),
155+
$attribute->getEntity()->getLinkField() => $product->getId(),
156156
'attribute_id' => $attribute->getId(),
157157
'value' => $baseImage,
158158
];

0 commit comments

Comments
 (0)