This commit is contained in:
王怡栋
2021-12-24 08:42:02 +08:00
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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'));
}
}