Skip to content

Commit 8815727

Browse files
committed
ACPT-99
1 parent 03f6828 commit 8815727

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

app/code/Magento/ImportExport/Model/Import.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ public function importSource()
505505

506506
$result = $this->processImport();
507507
$this->getDataSourceModel()->markProcessedBunches($ids);
508-
$this->getDataSourceModel()->cleanProcessedBunches();
508+
$this->getDataSourceModel()->cleanBunchesWithId($ids);
509509
if ($result) {
510510
$this->addLogComment(
511511
[

app/code/Magento/ImportExport/Model/ResourceModel/Import/Data.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,22 @@ public function cleanBunches()
116116
return $this->getConnection()->delete($this->getMainTable());
117117
}
118118

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+
119135
/**
120136
* Clean all bunches from table.
121137
*

0 commit comments

Comments
 (0)