Skip to content

Commit d4eae4d

Browse files
committed
Merge pull request magento#15 from magento-firedrakes/CatalogStaging
[Firedrakes] Catalog staging
2 parents 7b1493f + 4099afc commit d4eae4d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
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
];
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
customer_email,currency,shipping_method,payment,product,refund
2-
"[email protected]",USD,"flatrate_flatrate",checkmo,"a:3:{s:3:""sku"";s:4:""WS03"";s:3:""qty"";s:1:""1"";s:20:""configurable_options"";a:2:{s:4:""size"";s:2:""XS"";s:5:""color"";s:3:""Red"";}}",no
3-
"[email protected]",USD,"flatrate_flatrate",checkmo,"a:3:{s:3:""sku"";s:4:""WS08"";s:3:""qty"";s:1:""1"";s:20:""configurable_options"";a:2:{s:4:""size"";s:2:""XS"";s:5:""color"";s:4:""Blue"";}}",yes
2+
"[email protected]",USD,"flatrate_flatrate",checkmo,"a:2:{s:3:""sku"";s:7:""24-MB01"";s:3:""qty"";s:1:""1"";}",no
3+
"[email protected]",USD,"flatrate_flatrate",checkmo,"a:2:{s:3:""sku"";s:7:""24-MB04"";s:3:""qty"";s:1:""1"";}",yes

0 commit comments

Comments
 (0)