From a8fa4608935927db3b012dff1e889493b5d17b0f Mon Sep 17 00:00:00 2001 From: dmanners Date: Tue, 8 Aug 2017 10:32:11 +0000 Subject: [PATCH] Update the reset button of UrlRewrite block to not cause JS errors --- app/code/Magento/UrlRewrite/Block/Edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/UrlRewrite/Block/Edit.php b/app/code/Magento/UrlRewrite/Block/Edit.php index 7311efeb114c1..baee8af893083 100644 --- a/app/code/Magento/UrlRewrite/Block/Edit.php +++ b/app/code/Magento/UrlRewrite/Block/Edit.php @@ -118,7 +118,7 @@ protected function _addResetButton() 'reset', [ 'label' => __('Reset'), - 'onclick' => '$(\'edit_form\').reset()', + 'onclick' => 'location.reload();', 'class' => 'scalable', 'level' => -1 ]