This commit is contained in:
holan20180123
2020-07-09 13:40:53 +08:00
parent 802d64a3cf
commit 2499478e53
+6 -1
View File
@@ -253,7 +253,12 @@ class treeModel extends model
$treeMenu = array();
$lastMenu[] = '/';
$projectModules = $this->getTaskTreeModules($rootID, true);
$noProductModules = $this->dao->select('*')->from(TABLE_MODULE)->where("root = '" . (int)$rootID . "' and type = 'task' and parent = 0")->andWhere('deleted')->eq(0)->fetchPairs('id', 'name');
$noProductModules = $this->dao->select('*')->from(TABLE_MODULE)
->where("root = '" . (int)$rootID . "' and type = 'task' and parent = 0")
->andWhere('deleted')
->eq(0)
->orderBy('grade desc, branch, `order`, type')
->fetchPairs('id', 'name');
/* Fix for not in product modules. */
$productNum = count($products);