* Finish task #12964.

This commit is contained in:
tianshujie98
2020-10-28 10:15:42 +08:00
parent e52a724b35
commit ffa192c299
+3 -6
View File
@@ -2689,13 +2689,10 @@ class taskModel extends model
*/
public function processData4Report($tasks, $children, $field)
{
if($children)
if(is_array($children))
{
foreach($children as $taskID => $task)
{
$tasks[$taskID] = $task;
unset($tasks[$task->parent]);
}
/* Remove the parent task from the tasks. */
foreach($children as $childTaskID => $childTask) unset($tasks[$childTask->parent]);
}
$fields = array();