Skip to content

Commit 93b1e0d

Browse files
author
Sergey Shvets
committed
MAGETWO-98105: Import button is available in cases it's shouldn't.
1 parent 19bd34b commit 93b1e0d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2556,7 +2556,7 @@ public function validateRow(array $rowData, $rowNum)
25562556
$rowNum,
25572557
$rowData[self::COL_NAME],
25582558
$message,
2559-
ProcessingError::ERROR_LEVEL_NOT_CRITICAL
2559+
$errorLevel
25602560
)
25612561
->getErrorAggregator()
25622562
->addRowToSkip($rowNum);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ private function getImport()
136136
private function addMessageToSkipErrors(Result $resultBlock)
137137
{
138138
$import = $this->getImport();
139-
if (!$import->getErrorAggregator()->hasToBeTerminated()) {
139+
if (!$import->getErrorAggregator()->hasFatalExceptions()) {
140140
$resultBlock->addSuccess(
141141
__('Please fix errors and re-upload file or simply press "Import" button to skip rows with errors'),
142142
true

0 commit comments

Comments
 (0)