Skip to content

Commit

Permalink
updated code as per given instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
saphal committed Oct 27, 2018
1 parent cd24396 commit cbbaf12
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/code/Magento/Review/Model/ResourceModel/Rating.php
Original file line number Diff line number Diff line change
Expand Up @@ -433,10 +433,9 @@ public function getReviewSummary($object, $onlyForCurrentStore = true)

$data = $connection->fetchAll($select, [':review_id' => $object->getReviewId()]);

$currentStore = $this->_storeManager->getStore()->setId();
if ($this->_state->getAreaCode() == "adminhtml") {
$currentStore = false;
} else {
$currentStore = $this->_storeManager->getStore()->setId();
}

if ($onlyForCurrentStore) {
Expand Down

0 comments on commit cbbaf12

Please sign in to comment.