From f3537e3e92613b7a335dc76444e48cdf1e4101f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bennet=20Klarh=C3=B6lter?= Date: Tue, 8 Sep 2020 15:51:43 +0200 Subject: [PATCH] Fix missing store id in array --- Model/Import/Product.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Model/Import/Product.php b/Model/Import/Product.php index ff83961..89a8104 100755 --- a/Model/Import/Product.php +++ b/Model/Import/Product.php @@ -525,7 +525,7 @@ protected function saveProducts() if ($column == self::COL_MEDIA_IMAGE) { $rowData[$column][] = $uploadedFile; } - $mediaGallery[$rowSku][] = [ + $mediaGallery[0][$rowSku][] = [ 'attribute_id' => $this->getMediaGalleryAttributeId(), 'label' => isset($rowLabels[$column][$position]) ? $rowLabels[$column][$position] : '', 'position' => $position + 1, @@ -1185,4 +1185,4 @@ private function getProductEntityLinkField() } return $this->productEntityLinkField; } -} \ No newline at end of file +}