* Adjust task page for chilrenTask.
This commit is contained in:
@@ -189,6 +189,18 @@ class project extends control
|
||||
/* Get tasks. */
|
||||
$tasks = $this->project->getTasks($productID, $projectID, $this->projects, $browseType, $queryID, $moduleID, $sort, $pager);
|
||||
|
||||
if($browseType != 'unclosed' and $browseType != 'all')
|
||||
{
|
||||
foreach($tasks as $task)
|
||||
{
|
||||
if(isset($task->children))
|
||||
{
|
||||
$task->children = true;
|
||||
unset($task->children);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Build the search form. */
|
||||
$actionURL = $this->createLink('project', 'task', "projectID=$projectID&status=bySearch¶m=myQueryID");
|
||||
$this->config->project->search['onMenuBar'] = 'yes';
|
||||
|
||||
Reference in New Issue
Block a user