* Fix module orderBy.

This commit is contained in:
Yagami
2018-11-12 15:55:47 +08:00
parent 9a2a2b234d
commit e29d9990aa
+1 -1
View File
@@ -234,7 +234,7 @@ class treeModel extends model
$modules = $this->dao->select('*')->from(TABLE_MODULE)->where("root = '" . (int)$rootID . "' and type = 'task' and path like '%,$id,%'")
->beginIF($startModulePath)->andWhere('path')->like($startModulePath)->fi()
->andWhere('deleted')->eq(0)
->orderBy('grade desc, branch, type, `order`')
->orderBy('grade desc, type, `order`')
->fetchAll('id');
}