Skip to content

Commit 02adaea

Browse files
committed
AC-13529: Product import csv file with special characters fails due to code changes in Validate.php file
1 parent 56463d5 commit 02adaea

File tree

1 file changed

+3
-1
lines changed
  • app/code/Magento/ImportExport/Controller/Adminhtml/Import

1 file changed

+3
-1
lines changed

app/code/Magento/ImportExport/Controller/Adminhtml/Import/Validate.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,9 @@ private function validateRowError(object $errorAggregator, int $totalRows): bool
132132
$errors = $errorAggregator->getAllErrors();
133133
$rowNumber = [];
134134
foreach ($errors as $error) {
135-
$rowNumber = array_unique([...$rowNumber , ...[$error->getRowNumber()]]);
135+
if ($error->getRowNumber()) {
136+
$rowNumber = array_unique([...$rowNumber , ...[$error->getRowNumber()]]);
137+
}
136138
}
137139
(count($rowNumber) < $totalRows)? $this->_validateRowError = true : $this->_validateRowError = false;
138140
return $this->_validateRowError;

0 commit comments

Comments
 (0)