From d537d56db551e3c8cf8d6b4bbdd211c778000aa8 Mon Sep 17 00:00:00 2001 From: Chenjianyu Date: Mon, 7 Aug 2023 10:43:01 +0800 Subject: [PATCH] * fix a wrong var when jump back to view after publishing a prompt. --- module/ai/control.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/module/ai/control.php b/module/ai/control.php index 228f2c4831..81f0ec746e 100644 --- a/module/ai/control.php +++ b/module/ai/control.php @@ -566,8 +566,7 @@ class ai extends control if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError())); if($backToTestingLocation) { - $prompt = $this->ai->getPromptByID($id); - return $this->send(array('result' => 'success', 'message' => $this->lang->ai->prompts->action->publishSuccess, 'locate' => $this->inlink('promptview', "promptID=$promptId"))); + return $this->send(array('result' => 'success', 'message' => $this->lang->ai->prompts->action->publishSuccess, 'locate' => $this->inlink('promptview', "id=$id"))); } return $this->send(array('result' => 'success'));