Skip to content

Commit d629a1e

Browse files
committed
Github #99: Sync "develop-storefront" with master branches
- Fixed issue with product status update after products import
1 parent ec05ff6 commit d629a1e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/CatalogImportExport/Model/Import/Product/StatusProcessor.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ public function loadOldStatus(array $linkIdBySku): void
101101
$select = $connection->select()
102102
->from($this->getAttribute()->getBackend()->getTable())
103103
->columns([$linkId, 'store_id', 'value'])
104-
->where(sprintf('%s IN (?)', $linkId), array_values($linkIdBySku));
104+
->where(sprintf('%s IN (?)', $linkId), array_values($linkIdBySku))
105+
->where('attribute_id = ?', $this->getAttribute()->getId());
105106
$skuByLinkId = array_flip($linkIdBySku);
106107

107108
foreach ($connection->fetchAll($select) as $item) {

0 commit comments

Comments
 (0)