* fix the error of report when browsetype = needconfirm.

* adjust the UI.
This commit is contained in:
wangchunsheng
2010-04-14 02:52:25 +00:00
parent 32c9effd8a
commit d7adf14347
2 changed files with 8 additions and 5 deletions

View File

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

View File

@@ -33,7 +33,7 @@ span {display:block}
</div>
</div>
<div class='yui-d0 yui-t7'>
<div class='yui-d0 yui-t1'>
<div class='yui-b'>
<div class='box-title'><?php echo $lang->bug->report->select;?></div>
<div class='box-content'>