File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
app/code/Magento/ImportExport/Model/Import/Entity Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -408,7 +408,9 @@ protected function _saveValidatedBunches()
408
408
if ($ source ->valid ()) {
409
409
try {
410
410
$ rowData = $ source ->current ();
411
- $ skuSet [$ rowData ['sku ' ]] = true ;
411
+ if (array_key_exists ('sku ' , $ rowData )) {
412
+ $ skuSet [$ rowData ['sku ' ]] = true ;
413
+ }
412
414
} catch (\InvalidArgumentException $ e ) {
413
415
$ this ->addRowError ($ e ->getMessage (), $ this ->_processedRowsCount );
414
416
$ this ->_processedRowsCount ++;
@@ -436,7 +438,7 @@ protected function _saveValidatedBunches()
436
438
$ source ->next ();
437
439
}
438
440
}
439
- $ this ->_processedEntitiesCount = count ($ skuSet );
441
+ $ this ->_processedEntitiesCount = ( count ($ skuSet )) ? : $ this -> _processedRowsCount ;
440
442
441
443
return $ this ;
442
444
}
You can’t perform that action at this time.
0 commit comments