Skip to content

Commit 5f2dcd2

Browse files
author
Alexey Yakimovich
committed
MAGETWO-87974: Can't hide product images via hide_from_product_page attribute during import
- Fixed an issue with 'Undefined index' notice after product import;
1 parent 851ed5c commit 5f2dcd2

File tree

1 file changed

+3
-1
lines changed
  • app/code/Magento/CatalogImportExport/Model/Import

1 file changed

+3
-1
lines changed

app/code/Magento/CatalogImportExport/Model/Import/Product.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1726,7 +1726,9 @@ protected function _saveProducts()
17261726
: Store::DEFAULT_STORE_ID;
17271727
$imageHiddenStates = $this->getImagesHiddenStates($rowData);
17281728
foreach (array_keys($imageHiddenStates) as $image) {
1729-
if (array_key_exists($image, $existingImages[$rowSku])) {
1729+
if (array_key_exists($rowSku, $existingImages)
1730+
&& array_key_exists($image, $existingImages[$rowSku])
1731+
) {
17301732
$rowImages[self::COL_MEDIA_IMAGE][] = $image;
17311733
$uploadedImages[$image] = $image;
17321734
}

0 commit comments

Comments
 (0)