We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b1493f commit 10ff567Copy full SHA for 10ff567
app/code/Magento/CatalogSampleData/Model/Product/Gallery.php
@@ -152,7 +152,7 @@ protected function storeImage($product, $images)
152
$table = $imageAttribute->getBackend()->getTable();
153
/** @var \Magento\Framework\DB\Adapter\AdapterInterface $adapter*/
154
$data = [
155
- $attribute->getBackend()->getEntityIdField() => $product->getId(),
+ $attribute->getEntity()->getLinkField() => $product->getId(),
156
'attribute_id' => $attribute->getId(),
157
'value' => $baseImage,
158
];
0 commit comments