diff --git a/module/bug/control.php b/module/bug/control.php index 6bffa3de11..5b0d0acff9 100644 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -47,7 +47,7 @@ class bug extends control } /* 浏览一个产品下面的bug。*/ - public function browse($productID = 0, $browseType = 'byModule', $param = 0, $orderBy = 'iddesc', $recTotal = 0, $recPerPage = 20, $pageID = 1) + public function browse($productID = 0, $browseType = 'byModule', $param = 0, $orderBy = 'id_desc', $recTotal = 0, $recPerPage = 20, $pageID = 1) { /* 设置产品id和模块id。*/ $browseType = strtolower($browseType); diff --git a/module/bug/model.php b/module/bug/model.php index 93cb3ee016..651ef10b97 100644 --- a/module/bug/model.php +++ b/module/bug/model.php @@ -62,7 +62,7 @@ class bugModel extends model } /* 获得某一个产品,某一个模块下面的所有bug。*/ - public function getModuleBugs($productID, $moduleIds = 0, $orderBy = 'iddesc', $pager = null) + public function getModuleBugs($productID, $moduleIds = 0, $orderBy = 'id_desc', $pager = null) { return $this->dao->select('*')->from(TABLE_BUG) ->where('product')->eq((int)$productID) @@ -249,7 +249,7 @@ class bugModel extends model } /* 获得某个项目的bug列表。*/ - public function getProjectBugs($projectID, $orderBy = 'iddesc', $pager = null) + public function getProjectBugs($projectID, $orderBy = 'id_desc', $pager = null) { return $this->dao->select('*')->from(TABLE_BUG)->where('project')->eq((int)$projectID)->orderBy($orderBy)->page($pager)->fetchAll(); } diff --git a/module/product/control.php b/module/product/control.php index b9d394ba8e..9a40d603ea 100644 --- a/module/product/control.php +++ b/module/product/control.php @@ -49,7 +49,7 @@ class product extends control } /* 浏览某一个产品。*/ - public function browse($productID = 0, $browseType = 'byModule', $param = 0, $orderBy = 'iddesc', $recTotal = 0, $recPerPage = 20, $pageID = 1) + public function browse($productID = 0, $browseType = 'byModule', $param = 0, $orderBy = 'id_desc', $recTotal = 0, $recPerPage = 20, $pageID = 1) { /* 设置搜索条件。*/ $this->config->product->search['actionURL'] = $this->createLink('product', 'browse', "productID=$productID&browseType=bySearch");