Skip to content

Commit e9b5475

Browse files
committed
MAGETWO-35512: [GitHub] Product Model sometimes values change in getters methods #1133
1 parent ebf4389 commit e9b5475

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

app/code/Magento/Catalog/Model/Product.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2266,11 +2266,8 @@ public function getIdentities()
22662266
}
22672267
}
22682268
if ($this->getOrigData('status') != $this->getData('status')) {
2269-
$categoryIds = $this->getData('category_ids');
2270-
if (!empty($categoryIds)) {
2271-
foreach ($categoryIds as $categoryId) {
2272-
$identities[] = self::CACHE_PRODUCT_CATEGORY_TAG . '_' . $categoryId;
2273-
}
2269+
foreach ($this->getCategoryIds() as $categoryId) {
2270+
$identities[] = self::CACHE_PRODUCT_CATEGORY_TAG . '_' . $categoryId;
22742271
}
22752272
}
22762273
return array_unique($identities);

0 commit comments

Comments
 (0)