Skip to content

Commit e4b7b7c

Browse files
Fixing Import counts when multiple bunches
Changing updateItemsCounterStats to add and assign instead of just assign. This is to fix bug where only the last bunch counts (instead of all bunch counts) were being returned to user.
1 parent 58fea1e commit e4b7b7c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -891,9 +891,9 @@ public function getDeletedItemsCount()
891891
*/
892892
protected function updateItemsCounterStats(array $created = [], array $updated = [], array $deleted = [])
893893
{
894-
$this->countItemsCreated = count($created);
895-
$this->countItemsUpdated = count($updated);
896-
$this->countItemsDeleted = count($deleted);
894+
$this->countItemsCreated += count($created);
895+
$this->countItemsUpdated += count($updated);
896+
$this->countItemsDeleted += count($deleted);
897897
return $this;
898898
}
899899

0 commit comments

Comments
 (0)