From fbb5e00202652c0ba65ff3093c00d3eb51afc81e Mon Sep 17 00:00:00 2001 From: daitingting Date: Sat, 16 Dec 2023 09:25:57 +0000 Subject: [PATCH] * Adjust return. --- module/bug/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/bug/control.php b/module/bug/control.php index a141eff936..4af5a80b8f 100755 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -148,7 +148,7 @@ class bug extends control /* 判断 bug 是否存在。*/ /* Judge bug exits or not. */ - if(!$bug) return print(js::alert($this->lang->notFound) . js::locate($this->createLink('qa', 'index'))); + if(!$bug) return $this->send(array('result' => 'success', 'load' => array('alert' => $this->lang->notFound, 'locate' => $this->createLink('qa', 'index')))); /* 检查用户是否拥有所属执行的权限。*/ /* Check bug execution priv. */