Skip to content

Commit 01013fa

Browse files
author
Pieter Cappelle
committed
Fix for issue 12793
1 parent fc97826 commit 01013fa

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/GroupedImportExport/Model/Import/Product/Type

1 file changed

+2
-2
lines changed

app/code/Magento/GroupedImportExport/Model/Import/Product/Type/Grouped.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function saveData()
8989
foreach ($associatedSkusAndQtyPairs as $associatedSkuAndQty) {
9090
++$position;
9191
$associatedSkuAndQty = explode(self::SKU_QTY_DELIMITER, $associatedSkuAndQty);
92-
$associatedSku = isset($associatedSkuAndQty[0]) ? trim($associatedSkuAndQty[0]) : null;
92+
$associatedSku = isset($associatedSkuAndQty[0]) ? strtolower(trim($associatedSkuAndQty[0])) : null;
9393
if (isset($newSku[$associatedSku])) {
9494
$linkedProductId = $newSku[$associatedSku][$this->getProductEntityIdentifierField()];
9595
} elseif (isset($oldSku[$associatedSku])) {
@@ -99,7 +99,7 @@ public function saveData()
9999
}
100100
$scope = $this->_entityModel->getRowScope($rowData);
101101
if (Product::SCOPE_DEFAULT == $scope) {
102-
$productData = $newSku[$rowData[Product::COL_SKU]];
102+
$productData = $newSku[strtolower($rowData[Product::COL_SKU])];
103103
} else {
104104
$colAttrSet = Product::COL_ATTR_SET;
105105
$rowData[$colAttrSet] = $productData['attr_set_code'];

0 commit comments

Comments
 (0)