Skip to content

Commit 904b234

Browse files
author
Duong Hoang
committed
Limit the php explode to 2 to prevent extra '=' sign content in the attribute value being explode to more than 2 element in result array.
--UPDATE-- add space after comma ','
1 parent cded4b1 commit 904b234

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/ConfigurableImportExport/Model/Import/Product/Type

1 file changed

+1
-1
lines changed

app/code/Magento/ConfigurableImportExport/Model/Import/Product/Type/Configurable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ protected function _parseVariations($rowData)
573573

574574
$fieldAndValuePairs = [];
575575
foreach ($fieldAndValuePairsText as $nameAndValue) {
576-
$nameAndValue = explode(ImportProduct::PAIR_NAME_VALUE_SEPARATOR, $nameAndValue,2);
576+
$nameAndValue = explode(ImportProduct::PAIR_NAME_VALUE_SEPARATOR, $nameAndValue, 2);
577577
if (!empty($nameAndValue)) {
578578
$value = isset($nameAndValue[1]) ? trim($nameAndValue[1]) : '';
579579
// Ignoring field names' case.

0 commit comments

Comments
 (0)