From 839c612be8ead4098850eb3abbbe3945785cd6fb Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Fri, 13 Nov 2009 06:34:17 +0000 Subject: [PATCH] * adjust the bug view. --- trunk/module/project/control.php | 5 ++++- trunk/module/project/view/bug.html.php | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/trunk/module/project/control.php b/trunk/module/project/control.php index 64a3cc0e42..43a59546c2 100644 --- a/trunk/module/project/control.php +++ b/trunk/module/project/control.php @@ -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); diff --git a/trunk/module/project/view/bug.html.php b/trunk/module/project/view/bug.html.php index 721dfdedd3..aad46b8ce0 100644 --- a/trunk/module/project/view/bug.html.php +++ b/trunk/module/project/view/bug.html.php @@ -74,7 +74,7 @@ function selectProject(projectID) - createLink('bug', 'view', "bugID=$bug->id"), $bug->id);?> + createLink('bug', 'view', "bugID=$bug->id"), sprintf('%03d', $bug->id));?> severity?> title;?> openedBy];?>