- Remove die() of action module.

This commit is contained in:
zhujinyong
2021-12-20 09:05:16 +08:00
parent cf477770fe
commit 72b41be5b0
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -1384,7 +1384,7 @@ class actionModel extends model
{
$module = $this->dao->select('*')->from(TABLE_MODULE)->where('id')->eq($action->objectID)->fetch();
$repeatName = $this->loadModel('tree')->checkUnique($module);
if($repeatName) die(js::alert(sprintf($this->lang->tree->repeatName, $repeatName)));
if($repeatName) return print(js::alert(sprintf($this->lang->tree->repeatName, $repeatName)));
}
/* Update deleted field in object table. */