File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
app/code/Magento/Review/Block/Adminhtml/Rating/Edit/Tab Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -111,13 +111,16 @@ protected function addRatingFieldset()
111
111
]
112
112
);
113
113
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
+ }
120
122
}
123
+
121
124
$ this ->setRatingData ();
122
125
}
123
126
You can’t perform that action at this time.
0 commit comments