From e9b547594fc2d5ab8bfcbff5f5e60b8e42ec567f Mon Sep 17 00:00:00 2001 From: Volodymyr Kholoshenko Date: Tue, 2 Jun 2015 12:46:55 +0300 Subject: [PATCH] MAGETWO-35512: [GitHub] Product Model sometimes values change in getters methods #1133 --- app/code/Magento/Catalog/Model/Product.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/code/Magento/Catalog/Model/Product.php b/app/code/Magento/Catalog/Model/Product.php index 70699ed34557c..013f54474c0b4 100644 --- a/app/code/Magento/Catalog/Model/Product.php +++ b/app/code/Magento/Catalog/Model/Product.php @@ -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);