* change code about undone
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user