* fix a wrong var when jump back to view after publishing a prompt.
This commit is contained in:
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user