From 19fdff329b551fa868f052fcad0c5b3e35123d89 Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Fri, 28 Oct 2011 05:09:27 +0000 Subject: [PATCH] * fix the error of getActiveBugs(). --- module/bug/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/bug/model.php b/module/bug/model.php index a8834fed9f..bf80dafd44 100644 --- a/module/bug/model.php +++ b/module/bug/model.php @@ -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(); } /**