* change the divider of orderby.

This commit is contained in:
wangchunsheng
2010-03-28 13:03:08 +00:00
parent 52d38d5a88
commit 4b9e6b0bdb
3 changed files with 4 additions and 4 deletions

View File

@@ -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);

View File

@@ -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();
}

View File

@@ -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");