File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
app/code/Magento/ImportExport/Model/Import/Entity Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -391,6 +391,7 @@ protected function _saveValidatedBunches()
391
391
$ nextRowBackup = [];
392
392
$ maxDataSize = $ this ->_resourceHelper ->getMaxDataSize ();
393
393
$ bunchSize = $ this ->_importExportData ->getBunchSize ();
394
+ $ skuSet = [];
394
395
395
396
$ source ->rewind ();
396
397
$ this ->_dataSourceModel ->cleanBunches ();
@@ -407,6 +408,7 @@ protected function _saveValidatedBunches()
407
408
if ($ source ->valid ()) {
408
409
try {
409
410
$ rowData = $ source ->current ();
411
+ $ skuSet [$ rowData ['sku ' ]] = true ;
410
412
} catch (\InvalidArgumentException $ e ) {
411
413
$ this ->addRowError ($ e ->getMessage (), $ this ->_processedRowsCount );
412
414
$ this ->_processedRowsCount ++;
@@ -434,6 +436,8 @@ protected function _saveValidatedBunches()
434
436
$ source ->next ();
435
437
}
436
438
}
439
+ $ this ->_processedEntitiesCount = count ($ skuSet );
440
+
437
441
return $ this ;
438
442
}
439
443
You can’t perform that action at this time.
0 commit comments