Skip to content

Commit

Permalink
Fixed incorrect var reference
Browse files Browse the repository at this point in the history
  • Loading branch information
fazed committed Dec 20, 2021
1 parent ab41060 commit 178aa27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/Resource/ProductStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ protected function saveProducts(array $validProducts, ImportConfig $config)
$this->productEntityStorage->removeOldCategoryIds($validProducts);
}
$this->productEntityStorage->insertCategoryIds($validProducts);
if ($config->categoryStrategy === ImportConfig::WEBSITE_STRATEGY_SET) {
if ($config->websiteStrategy === ImportConfig::WEBSITE_STRATEGY_SET) {
$this->productEntityStorage->removeOldWebsiteIds($validProducts);
}
$this->productEntityStorage->insertWebsiteIds($validProducts);
Expand Down

0 comments on commit 178aa27

Please sign in to comment.