Skip to content

Commit 2867668

Browse files
committed
Resolve "Enable Single-Store Mode" is "Yes" but the create New Rating has store view title issue25060
1 parent 0dcb19e commit 2867668

File tree

1 file changed

+9
-6
lines changed
  • app/code/Magento/Review/Block/Adminhtml/Rating/Edit/Tab

1 file changed

+9
-6
lines changed

app/code/Magento/Review/Block/Adminhtml/Rating/Edit/Tab/Form.php

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,16 @@ protected function addRatingFieldset()
111111
]
112112
);
113113

114-
foreach ($this->systemStore->getStoreCollection() as $store) {
115-
$this->getFieldset('rating_form')->addField(
116-
'rating_code_' . $store->getId(),
117-
'text',
118-
['label' => $store->getName(), 'name' => 'rating_codes[' . $store->getId() . ']']
119-
);
114+
if (!$this->_storeManager->isSingleStoreMode()) {
115+
foreach ($this->systemStore->getStoreCollection() as $store) {
116+
$this->getFieldset('rating_form')->addField(
117+
'rating_code_' . $store->getId(),
118+
'text',
119+
['label' => $store->getName(), 'name' => 'rating_codes[' . $store->getId() . ']']
120+
);
121+
}
120122
}
123+
121124
$this->setRatingData();
122125
}
123126

0 commit comments

Comments
 (0)