Skip to content

Commit de45814

Browse files
Merge branch 'MAGNIMEX-316-Labels-for-images' into 'master'
Magnimex 316 labels for images See merge request !157
2 parents 89b27c5 + ab58d42 commit de45814

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

0 commit comments

Comments
 (0)