* fix the error of getByUser().

This commit is contained in:
wangchunsheng
2010-11-30 06:29:22 +00:00
parent bf23cd227b
commit cd75a9f353
+1 -1
View File
@@ -101,7 +101,7 @@ class testtaskModel extends model
->from(TABLE_TESTTASK)->alias('t1')
->leftJoin(TABLE_PROJECT)->alias('t2')->on('t1.project = t2.id')
->leftJoin(TABLE_BUILD)->alias('t3')->on('t1.build = t3.id')
->andWhere('t1.deleted')->eq(0)
->where('t1.deleted')->eq(0)
->andWhere('t1.owner')->eq($account)
->orderBy('id desc')
->fetchAll();