diff --git a/module/branch/js/manage.js b/module/branch/js/manage.js index 49f87ac8e8..6c5524828e 100644 --- a/module/branch/js/manage.js +++ b/module/branch/js/manage.js @@ -126,7 +126,7 @@ $(function() } var branchNames = Object.values(branchPairs); - if(isChecked && branchNames.includes($('#name').val()) !== -1) + if(isChecked && branchNames.indexOf($('#name').val()) !== -1) { alert(branchLang.existName); return false; diff --git a/module/product/control.php b/module/product/control.php index 2091ceb769..4bf1aba742 100644 --- a/module/product/control.php +++ b/module/product/control.php @@ -775,7 +775,7 @@ class product extends control $this->executeHooks($productID); if($this->viewType == 'json') return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess)); - die(js::locate($this->createLink('product', 'browse'), 'parent')); + die(js::locate($this->createLink('product', 'all'), 'parent')); } }