Skip to content

Commit 8b50b90

Browse files
committed
MAGETWO-67633: Advanced Pricing import validation results show 0 value for checked entities
1 parent a5107ab commit 8b50b90

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/code/Magento/ImportExport/Model/Import/Entity/AbstractEntity.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,7 @@ protected function _saveValidatedBunches()
391391
$nextRowBackup = [];
392392
$maxDataSize = $this->_resourceHelper->getMaxDataSize();
393393
$bunchSize = $this->_importExportData->getBunchSize();
394+
$skuSet = [];
394395

395396
$source->rewind();
396397
$this->_dataSourceModel->cleanBunches();
@@ -407,6 +408,7 @@ protected function _saveValidatedBunches()
407408
if ($source->valid()) {
408409
try {
409410
$rowData = $source->current();
411+
$skuSet[$rowData['sku']] = true;
410412
} catch (\InvalidArgumentException $e) {
411413
$this->addRowError($e->getMessage(), $this->_processedRowsCount);
412414
$this->_processedRowsCount++;
@@ -434,6 +436,8 @@ protected function _saveValidatedBunches()
434436
$source->next();
435437
}
436438
}
439+
$this->_processedEntitiesCount = count($skuSet);
440+
437441
return $this;
438442
}
439443

0 commit comments

Comments
 (0)