Skip to content

Commit 6d3fb44

Browse files
committed
MAGETWO-59715: Impossible to import additional_images with labels which have a comma separator
1 parent 73720dc commit 6d3fb44

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1485,7 +1485,7 @@ public function getImagesFromRow(array $rowData)
14851485
);
14861486

14871487
if (!empty($rowData[$column . '_label'])) {
1488-
$labels[$column] = $this->parseImageLabels($rowData[$column . '_label']);
1488+
$labels[$column] = $this->parseMultipleValues($rowData[$column . '_label']);
14891489

14901490
if (count($labels[$column]) > count($images[$column])) {
14911491
$labels[$column] = array_slice($labels[$column], 0, count($images[$column]));
@@ -2824,12 +2824,12 @@ private function updateMediaGalleryLabels(array $labels)
28242824
}
28252825

28262826
/**
2827-
* Parse labels from combined labels string
2827+
* Parse values from multiple attributes fields
28282828
*
28292829
* @param string $labelRow
28302830
* @return array
28312831
*/
2832-
private function parseImageLabels($labelRow)
2832+
private function parseMultipleValues($labelRow)
28332833
{
28342834
return $this->parseMultiselectValues(
28352835
$labelRow,

0 commit comments

Comments
 (0)