* fix the error of getActiveBugs().

This commit is contained in:
wangchunsheng
2011-10-28 05:09:27 +00:00
parent cf741de82d
commit 19fdff329b
+1 -1
View File
@@ -122,7 +122,7 @@ class bugModel extends model
*/
public function getActiveBugs($pager)
{
return $this->dao->select('*')->from(TABLE_BUG)->where('status')->eq('active')->andWhere('toTask')->eq(0)->page($pager)->fetchAll();
return $this->dao->select('*')->from(TABLE_BUG)->where('status')->eq('active')->andWhere('toTask')->eq(0)->orderBy('id desc')->page($pager)->fetchAll();
}
/**