*Fix bug#18295.

This commit is contained in:
孙华伟
2022-04-14 08:32:47 +08:00
parent f9e8a8d69f
commit 93beba2f03
5 changed files with 18 additions and 3 deletions
+2 -1
View File
@@ -385,10 +385,11 @@ class tree extends control
* @return void
*/
public function manageChild($rootID, $viewType)
{
if(!empty($_POST))
{
$moduleIDList = $this->tree->manageChild($rootID, $viewType);
if(dao::isError()) return print(js::error(dao::getError()));
if($this->viewType == 'json') return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'idList' => $moduleIDList));
if(($viewType == 'doc' || $viewType == 'api') and isonlybody()) die(js::reload('parent.parent'));