*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
+7 -1
View File
@@ -1638,7 +1638,13 @@ class treeModel extends model
$short = $shorts[$moduleID];
$order = $orders[$moduleID];
$moduleID = str_replace('id', '', $moduleID);
$this->dao->update(TABLE_MODULE)->set('name')->eq(strip_tags(trim($moduleName)))->set('short')->eq($short)->set('order')->eq($order)->where('id')->eq($moduleID)->limit(1)->exec();
$data = new stdClass();
$data->name = strip_tags(trim($moduleName));
$data->short = $short;
$data->order = $order;
$this->dao->update(TABLE_MODULE)->data($data)->autoCheck()->where('id')->eq($moduleID)->limit(1)->exec();
}
}