* fix a bug for ignore deleted project.

This commit is contained in:
wangyidong
2014-12-01 02:31:09 +00:00
parent d1aed6cc98
commit b25a13a281
+1
View File
@@ -787,6 +787,7 @@ class projectModel extends model
->leftJoin(TABLE_TASK)->alias('t2')->on('t1.id=t2.project')
->where('t2.status')->notIN('done,closed')
->andWhere('t2.deleted')->eq(0)
->andWhere('t1.deleted')->eq(0)
->orderBy('id desc')
->fetchAll('id');