* change code about undone

This commit is contained in:
wenjie@cnezsoft.com
2011-05-01 03:28:46 +00:00
parent 4220cc3faa
commit e2ca7b2dca
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -492,7 +492,7 @@ class task extends control
* @access public
* @return void
*/
public function report($projectID, $browseType)
public function report($projectID, $browseType = 'all')
{
$this->loadModel('report');
+1 -2
View File
@@ -692,11 +692,10 @@ class taskModel extends model
$datas = $this->dao->select('finishedBy AS name, COUNT(finishedBy) AS value')
->from(TABLE_TASK)->alias('t1')
->where($this->session->taskReportCondition)
->andWhere('finishedBy')->ne('')
->groupBy('finishedBy')
->orderBy('value DESC')
->fetchAll('name');
if(!$datas) return array();
foreach($datas as $key => $data) $data->name = $data->name ? $data->name : $this->lang->task->statusList['undone'];
return $datas;
}