This commit is contained in:
wangyidong
2015-04-01 16:25:36 +08:00
parent 44161c02c0
commit 4046ab3cdd

View File

@@ -464,6 +464,7 @@ class treeModel extends model
$paths += $this->dao->select('DISTINCT t1.' . $field)->from(TABLE_MODULE)->alias('t1')
->leftJoin(TABLE_TASK)->alias('t2')->on('t1.id=t2.module')
->where('t2.module')->ne(0)
->andWhere('t2.project')->eq($projectID)
->andWhere('t2.deleted')->eq(0)
->andWhere('t1.type')->eq('story')
->fetchPairs();