File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
app/code/Magento/ImportExport/Model Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -505,7 +505,7 @@ public function importSource()
505
505
506
506
$ result = $ this ->processImport ();
507
507
$ this ->getDataSourceModel ()->markProcessedBunches ($ ids );
508
- $ this -> getDataSourceModel ()-> cleanBunchesWithId ( $ ids );
508
+
509
509
if ($ result ) {
510
510
$ this ->addLogComment (
511
511
[
@@ -523,6 +523,14 @@ public function importSource()
523
523
} else {
524
524
$ this ->importHistoryModel ->invalidateReport ($ this );
525
525
}
526
+ try {
527
+ if ($ this ->_getEntityAdapter ()->getSource () instanceof Base64EncodedCsvData) {
528
+ $ this ->getDataSourceModel ()->cleanBunchesWithId ($ ids );
529
+ }
530
+ // phpcs:ignore Magento2.CodeAnalysis.EmptyBlock
531
+ } catch (LocalizedException $ e ) {
532
+ //Do nothing if Source is not set
533
+ }
526
534
return $ result ;
527
535
}
528
536
You can’t perform that action at this time.
0 commit comments