Skip to content

Commit 5968811

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 incorrect image savind in non default store;
1 parent 5f2dcd2 commit 5968811

File tree

1 file changed

+4
-0
lines changed
  • app/code/Magento/CatalogImportExport/Model/Import

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1732,6 +1732,10 @@ protected function _saveProducts()
17321732
$rowImages[self::COL_MEDIA_IMAGE][] = $image;
17331733
$uploadedImages[$image] = $image;
17341734
}
1735+
1736+
if (empty($rowImages)) {
1737+
$rowImages[self::COL_MEDIA_IMAGE][] = $image;
1738+
}
17351739
}
17361740

17371741
$rowData[self::COL_MEDIA_IMAGE] = [];

0 commit comments

Comments
 (0)