diff --git a/app/code/Magento/Review/Block/Adminhtml/Edit.php b/app/code/Magento/Review/Block/Adminhtml/Edit.php index c85374edb8d98..9162d293f9332 100644 --- a/app/code/Magento/Review/Block/Adminhtml/Edit.php +++ b/app/code/Magento/Review/Block/Adminhtml/Edit.php @@ -220,10 +220,16 @@ protected function _construct() ); } } - Event.observe(window, \'load\', function(){ - Event.observe($("select_stores"), \'change\', review.updateRating); - }); '; + if (!$this->_storeManager->hasSingleStore()) { + $this->_formInitScripts[] = ' + require(["jquery","prototype"], function(jQuery){ + Event.observe(window, \'load\', function(){ + Event.observe($("select_stores"), \'change\', review.updateRating); + }); + }) + '; + } } /**