File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
app/code/Magento/ImportExport/Model/Import Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 14
14
use Magento \ImportExport \Model \Import ;
15
15
use Magento \ImportExport \Model \Import \ErrorProcessing \ProcessingError ;
16
16
use Magento \ImportExport \Model \Import \ErrorProcessing \ProcessingErrorAggregatorInterface ;
17
+ use Magento \ImportExport \Model \Import \Source \Base64EncodedCsvData ;
17
18
use Magento \ImportExport \Model \ImportFactory ;
18
19
use Magento \ImportExport \Model \ResourceModel \Helper ;
19
20
use Magento \Store \Model \ScopeInterface ;
@@ -420,7 +421,7 @@ protected function _saveValidatedBunches()
420
421
$ startNewBunch = false ;
421
422
422
423
$ source ->rewind ();
423
- if ($ this -> ids ) {
424
+ if ($ source instanceof Base64EncodedCsvData ) {
424
425
$ this ->_dataSourceModel ->cleanProcessedBunches ();
425
426
} else {
426
427
$ this ->_dataSourceModel ->cleanBunches ();
Original file line number Diff line number Diff line change 13
13
use Magento \ImportExport \Model \Import as ImportExport ;
14
14
use Magento \ImportExport \Model \Import \ErrorProcessing \ProcessingError ;
15
15
use Magento \ImportExport \Model \Import \ErrorProcessing \ProcessingErrorAggregatorInterface ;
16
+ use Magento \ImportExport \Model \Import \Source \Base64EncodedCsvData ;
16
17
17
18
/**
18
19
* Import entity abstract model
@@ -394,7 +395,7 @@ protected function _saveValidatedBunches()
394
395
$ skuSet = [];
395
396
396
397
$ source ->rewind ();
397
- if ($ this -> ids ) {
398
+ if ($ source instanceof Base64EncodedCsvData ) {
398
399
$ this ->_dataSourceModel ->cleanProcessedBunches ();
399
400
} else {
400
401
$ this ->_dataSourceModel ->cleanBunches ();
You can’t perform that action at this time.
0 commit comments