File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
app/code/Magento/ImportExport/Model Expand file tree Collapse file tree 2 files changed +17
-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 ()->cleanProcessedBunches ( );
508
+ $ this ->getDataSourceModel ()->cleanBunchesWithId ( $ ids );
509
509
if ($ result ) {
510
510
$ this ->addLogComment (
511
511
[
Original file line number Diff line number Diff line change @@ -116,6 +116,22 @@ public function cleanBunches()
116
116
return $ this ->getConnection ()->delete ($ this ->getMainTable ());
117
117
}
118
118
119
+ /**
120
+ * Clean bunches with specific Ids
121
+ *
122
+ * @param array $ids
123
+ * @return void
124
+ */
125
+ public function cleanBunchesWithId (array $ ids )
126
+ {
127
+ $ this ->getConnection ()->delete (
128
+ $ this ->getMainTable (),
129
+ [
130
+ 'id IN (?) ' => $ ids ,
131
+ ]
132
+ );
133
+ }
134
+
119
135
/**
120
136
* Clean all bunches from table.
121
137
*
You can’t perform that action at this time.
0 commit comments