Пример #1
0
 /**
  * Check is review visibility was changed
  *
  * @param Mage_Review_Model_Review $review
  * @return bool
  */
 protected function _isChangedReviewVisibility($review)
 {
     return $review->getData('status_id') == Mage_Review_Model_Review::STATUS_APPROVED || $review->getData('status_id') != Mage_Review_Model_Review::STATUS_APPROVED && $review->getOrigData('status_id') == Mage_Review_Model_Review::STATUS_APPROVED;
 }