From d7adf14347cadb49e9ce0c3350706f01cf75cddd Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Wed, 14 Apr 2010 02:52:25 +0000 Subject: [PATCH] * fix the error of report when browsetype = needconfirm. * adjust the UI. --- trunk/module/bug/control.php | 11 +++++++---- trunk/module/bug/view/report.html.php | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/trunk/module/bug/control.php b/trunk/module/bug/control.php index e8753aff3f..63747eb13a 100644 --- a/trunk/module/bug/control.php +++ b/trunk/module/bug/control.php @@ -136,10 +136,13 @@ class bug extends control ->orderBy($orderBy)->page($pager)->fetchAll(); } - /* 处理查询语句,获取条件部分,并记录session。*/ - $sql = explode('WHERE', $this->dao->get()); - $sql = explode('ORDER', $sql[1]); - $this->session->set('bugReportCondition', $sql[0]); + /* 处理查询语句,获取条件部分,并记录session。需求待确认的,不参与报表统计。*/ + if($browseType != 'needconfirm') + { + $sql = explode('WHERE', $this->dao->get()); + $sql = explode('ORDER', $sql[1]); + $this->session->set('bugReportCondition', $sql[0]); + } $users = $this->user->getPairs('noletter'); diff --git a/trunk/module/bug/view/report.html.php b/trunk/module/bug/view/report.html.php index 52ffc65809..2ae72a4031 100644 --- a/trunk/module/bug/view/report.html.php +++ b/trunk/module/bug/view/report.html.php @@ -33,7 +33,7 @@ span {display:block} -
+
bug->report->select;?>