Skip to content

Commit 56a0f11

Browse files
saphalsaphaljha
authored andcommitted
code modification
1 parent cb6ff7e commit 56a0f11

File tree

1 file changed

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

1 file changed

+1
-4
lines changed

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

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

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

436-
$currentStore = $this->_storeManager->getStore()->setId();
437-
if ($this->_state->getAreaCode() == "adminhtml") {
438-
$currentStore = false;
439-
}
436+
$currentStore = ($this->_state->getAreaCode() == "adminhtml") ? false : $this->_storeManager->getStore()->getId();
440437

441438
if ($onlyForCurrentStore) {
442439
foreach ($data as $row) {

0 commit comments

Comments
 (0)