* Add sort for module tree. Fix bug#41368.

This commit is contained in:
xieqiyu
2024-04-11 13:25:40 +08:00
parent 3d8283b65e
commit 7733c6d5cc
4 changed files with 20 additions and 7 deletions
+1 -1
View File
@@ -1728,7 +1728,7 @@ class treeModel extends model
asort($orders);
$orderInfo = $this->dao->select('*')->from(TABLE_MODULE)->where('id')->in(array_keys($orders))->andWhere('deleted')->eq(0)->fetchAll('id');
$newOrders = array();
foreach($orders as $moduleID => $order)
foreach(array_keys($orders) as $moduleID)
{
$parent = $orderInfo[$moduleID]->parent;
$grade = $orderInfo[$moduleID]->grade;