Skip to content

Commit cbbaf12

Browse files
author
saphal
committed
updated code as per given instruction
1 parent cd24396 commit cbbaf12

File tree

1 file changed

+1
-2
lines changed
  • app/code/Magento/Review/Model/ResourceModel

1 file changed

+1
-2
lines changed

app/code/Magento/Review/Model/ResourceModel/Rating.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,10 +433,9 @@ public function getReviewSummary($object, $onlyForCurrentStore = true)
433433

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

436+
$currentStore = $this->_storeManager->getStore()->setId();
436437
if ($this->_state->getAreaCode() == "adminhtml") {
437438
$currentStore = false;
438-
} else {
439-
$currentStore = $this->_storeManager->getStore()->setId();
440439
}
441440

442441
if ($onlyForCurrentStore) {

0 commit comments

Comments
 (0)