Skip to content

Commit 7ea4721

Browse files
committed
#30388 : fix js error on edit review page
1 parent a88f580 commit 7ea4721

File tree

1 file changed

+6
-3
lines changed
  • app/code/Magento/Review/Block/Adminhtml

1 file changed

+6
-3
lines changed

app/code/Magento/Review/Block/Adminhtml/Edit.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,12 @@ protected function _construct()
222222
}
223223
';
224224
if (!$this->_storeManager->hasSingleStore()) {
225-
$this->_formInitScripts[] = 'Event.observe(window, \'load\', function(){
226-
Event.observe($("select_stores"), \'change\', review.updateRating);
227-
});
225+
$this->_formInitScripts[] = '
226+
require(["jquery","prototype"], function(jQuery){
227+
Event.observe(window, \'load\', function(){
228+
Event.observe($("select_stores"), \'change\', review.updateRating);
229+
});
230+
})
228231
';
229232
}
230233
}

0 commit comments

Comments
 (0)