Skip to content

Commit ab58d42

Browse files
author
Dmitry Kologrivov
committed
MAGNIMEX-316: Fix bug incorrect labels for images of product
1 parent 1107b63 commit ab58d42

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
@@ -1414,7 +1414,9 @@ protected function _saveProducts()
14141414
&& !in_array($rowData[$imageCol], $mediaGalleryImages)) {
14151415
$mediaGalleryImages[] = $rowData[$imageCol];
14161416
if (isset($mediaGalleryLabels)) {
1417-
$mediaGalleryLabels[] = isset($rowData[$imageCol . '_label']);
1417+
$mediaGalleryLabels[] = isset($rowData[$imageCol . '_label'])
1418+
? $rowData[$imageCol . '_label']
1419+
: '';
14181420
} else {
14191421
$mediaGalleryLabels[] = '';
14201422
}

0 commit comments

Comments
 (0)