* Adjust edit comment return data.

This commit is contained in:
caoyanyi
2023-11-15 15:47:38 +08:00
parent 45df6d2b72
commit bf46a2cc8c
+6 -4
View File
@@ -370,15 +370,17 @@ class action extends control
{
$this->action->updateComment($actionID);
}
elseif(in_array($objectType, $this->config->action->newPageModule))
{
return $this->send(array('status' => 'success', 'closeModal' => true, 'load' => true));
}
else
{
dao::$errors['submit'][] = $this->lang->action->historyEdit;
return $this->send(array('result' => 'fail', 'message' => dao::getError()));
}
$action = $this->action->getById($actionID);
if(in_array($action->objectType, $this->config->action->newPageModule))
{
return $this->send(array('status' => 'success', 'closeModal' => true, 'load' => true));
}
return $this->send(array('result' => 'success', 'locate' => 'reload', 'load' => true, 'closeModal' => true));
}