Skip to content

Commit

Permalink
Github #99: Sync "develop-storefront" with master branches
Browse files Browse the repository at this point in the history
 - Fixed issue with product status update after products import
  • Loading branch information
le0n4ik committed Aug 3, 2020
1 parent ec05ff6 commit d629a1e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ public function loadOldStatus(array $linkIdBySku): void
$select = $connection->select()
->from($this->getAttribute()->getBackend()->getTable())
->columns([$linkId, 'store_id', 'value'])
->where(sprintf('%s IN (?)', $linkId), array_values($linkIdBySku));
->where(sprintf('%s IN (?)', $linkId), array_values($linkIdBySku))
->where('attribute_id = ?', $this->getAttribute()->getId());
$skuByLinkId = array_flip($linkIdBySku);

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

0 comments on commit d629a1e

Please sign in to comment.