Skip to content

Commit 335cc77

Browse files
author
Sergey Shvets
committed
MAGETWO-98105: Import button is available in cases it's shouldn't.
1 parent 8dfe26a commit 335cc77

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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()->hasFatalExceptions()) {
139+
if (!$import->getErrorAggregator()->hasToBeTerminated()) {
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)