From 00e79f72f850b933815361e94d4e1bd67befe581 Mon Sep 17 00:00:00 2001 From: Chenjianyu Date: Fri, 1 Sep 2023 16:31:01 +0800 Subject: [PATCH] * fix error message style, bug #37919. --- module/ai/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/ai/control.php b/module/ai/control.php index dc16b02203..38de4dada4 100644 --- a/module/ai/control.php +++ b/module/ai/control.php @@ -443,7 +443,7 @@ class ai extends control if(!empty($data->goTesting)) // Go to testing object view. { $location = $this->ai->getTestingLocation($prompt); - return $this->send(empty($location) ? array('result' => 'fail', 'target' => '#go-test-btn', 'msg' => $this->lang->ai->prompts->goingTestingFail) : array('result' => 'success', 'target' => '#go-test-btn', 'msg' => $this->lang->ai->prompts->goingTesting, 'locate' => $location)); + return $this->send(empty($location) ? array('result' => 'fail', 'target' => '#go-test-btn', 'message' => $this->lang->ai->prompts->goingTestingFail) : array('result' => 'success', 'target' => '#go-test-btn', 'msg' => $this->lang->ai->prompts->goingTesting, 'locate' => $location)); } if(!empty($data->jumpToNext)) $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $this->inlink('promptFinalize', "promptID=$promptID") . '#app=admin'));