* adjust project task.

This commit is contained in:
zhujinyong
2013-01-21 08:11:03 +00:00
parent d6ecb98406
commit 890e80a8a0
5 changed files with 23 additions and 37 deletions
+1 -5
View File
@@ -139,11 +139,7 @@ class project extends control
$pager = new pager($recTotal, $recPerPage, $pageID);
$tasks = array();
if($status == 'byModule')
{
$tasks = $this->loadModel('task')->getTasksByModule($projectID, $this->tree->getAllChildID($moduleID), $orderBy, $pager);
}
elseif($browseType != "bysearch")
if($browseType != "bysearch")
{
$status = $status == 'byProject' ? 'all' : $status;
$tasks = $this->loadModel('task')->getProjectTasks($projectID, $status, $orderBy, $pager);