From e1743fd41b038f19cb2bf0fdf4ba6a04ecd5cd69 Mon Sep 17 00:00:00 2001 From: Logan Stellway Date: Thu, 23 Jun 2016 16:18:50 -0700 Subject: [PATCH] Added "strtolower" calls in Magento\CatalogImportExport\Model\Import\Product class when appending to $this->rowNumbers array in validateRow() method and also when retrieving the Row Number value from the $this->rowNumbers array in the checkUrlKeyDuplicates() method --- app/code/Magento/CatalogImportExport/Model/Import/Product.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/code/Magento/CatalogImportExport/Model/Import/Product.php b/app/code/Magento/CatalogImportExport/Model/Import/Product.php index 970b8a1aaea0f..c0f86bd407638 100644 --- a/app/code/Magento/CatalogImportExport/Model/Import/Product.php +++ b/app/code/Magento/CatalogImportExport/Model/Import/Product.php @@ -2303,7 +2303,7 @@ public function validateRow(array $rowData, $rowNum) || ($this->urlKeys[$storeId][$urlPath] == $rowData[self::COL_SKU]) ) { $this->urlKeys[$storeId][$urlPath] = $rowData[self::COL_SKU]; - $this->rowNumbers[$storeId][$urlPath] = $rowNum; + $this->rowNumbers[$storeId][strtolower($urlPath)] = $rowNum; } else { $this->addRowError(ValidatorInterface::ERROR_DUPLICATE_URL_KEY, $rowNum); } @@ -2474,7 +2474,7 @@ protected function checkUrlKeyDuplicates() ->where('cpe.sku not in (?)', array_values($urlKeys)) ); foreach ($urlKeyDuplicates as $entityData) { - $rowNum = $this->rowNumbers[$entityData['store_id']][$entityData['request_path']]; + $rowNum = $this->rowNumbers[$entityData['store_id']][strtolower($entityData['request_path'])]; $this->addRowError(ValidatorInterface::ERROR_DUPLICATE_URL_KEY, $rowNum); } }