* adjust the bug view.

This commit is contained in:
wangchunsheng
2009-11-13 06:34:17 +00:00
parent 4e5d067128
commit 839c612be8
2 changed files with 5 additions and 2 deletions

View File

@@ -143,12 +143,15 @@ class project extends control
}
/* 浏览某一个项目下面的bug。*/
public function bug($projectID = 0, $orderBy = 'status|desc', $recTotal = 0, $recPerPage = 15, $pageID = 1)
public function bug($projectID = 0, $orderBy = 'status,id|desc', $recTotal = 0, $recPerPage = 15, $pageID = 1)
{
/* 加载bug和user模块。*/
$this->loadModel('bug');
$this->loadModel('user');
/* 登记session。*/
$this->session->set('bugList', $this->app->getURI(true));
/* 公共的操作。*/
$project = $this->commonAction($projectID);

View File

@@ -74,7 +74,7 @@ function selectProject(projectID)
<tbody>
<?php foreach($bugs as $bug):?>
<tr class='a-center'>
<td class='a-right'><?php echo html::a($this->createLink('bug', 'view', "bugID=$bug->id"), $bug->id);?></td>
<td class='a-right'><?php echo html::a($this->createLink('bug', 'view', "bugID=$bug->id"), sprintf('%03d', $bug->id));?></td>
<td><?php echo $bug->severity?></td>
<td width='50%' class='a-left'><?php echo $bug->title;?></td>
<td><?php echo $users[$bug->openedBy];?></td>