* adjust for parent-child story.

This commit is contained in:
wangyidong
2020-03-13 08:36:31 +08:00
parent beaa6ff0b2
commit fcfe033f28
19 changed files with 447 additions and 43 deletions
+1 -1
View File
@@ -1393,7 +1393,7 @@ class task extends control
$children = array();
foreach($tasks as $task)
{
if(!empty($task->parent) and isset($tasks[$task->parent]))
if($task->parent > 0 and isset($tasks[$task->parent]))
{
$children[$task->parent][$task->id] = $task;
unset($tasks[$task->id]);