* Fixed the error message for edit the document module.

This commit is contained in:
tianshujie
2023-10-17 10:41:40 +08:00
parent 1b2eaa7cb7
commit 7bc4a46595
3 changed files with 22 additions and 17 deletions
+2 -7
View File
@@ -408,13 +408,8 @@ class tree extends control
$this->tree->update($moduleID, $type);
$response = array();
$response['result'] = 'success';
$response['message'] = $this->lang->saveSuccess;
$response['closeModal'] = true;
$response['load'] = true;
$this->send($response);
if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError()));
return $this->sendSuccess(array('clodeModal' => true, 'load' => true));
}
$module = $this->tree->getById($moduleID);