Skip to content

Commit

Permalink
MAGETWO-35512: [GitHub] Product Model sometimes values change in gett…
Browse files Browse the repository at this point in the history
…ers methods #1133
  • Loading branch information
vkholoshenko committed Jun 2, 2015
1 parent ebf4389 commit e9b5475
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions app/code/Magento/Catalog/Model/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -2266,11 +2266,8 @@ public function getIdentities()
}
}
if ($this->getOrigData('status') != $this->getData('status')) {
$categoryIds = $this->getData('category_ids');
if (!empty($categoryIds)) {
foreach ($categoryIds as $categoryId) {
$identities[] = self::CACHE_PRODUCT_CATEGORY_TAG . '_' . $categoryId;
}
foreach ($this->getCategoryIds() as $categoryId) {
$identities[] = self::CACHE_PRODUCT_CATEGORY_TAG . '_' . $categoryId;
}
}
return array_unique($identities);
Expand Down

0 comments on commit e9b5475

Please sign in to comment.