diff --git a/module/task/model.php b/module/task/model.php index abb8ee869e..51dff74cc6 100755 --- a/module/task/model.php +++ b/module/task/model.php @@ -3266,7 +3266,7 @@ class taskModel extends model if(empty($parentID)) $parentID = $childTask->parent; if($parentID <= 0) return; - $parentTasks = $this->dao->select('*')->from(TABLE_TASK)->where('id')->in($childTask->path)->andWhere('id')->ne($taskID)->fetchAll('id'); + $parentTasks = $this->dao->select('*')->from(TABLE_TASK)->where('id')->in($childTask->path)->andWhere('id')->ne($taskID)->orderBy('path_desc')->fetchAll('id'); if(empty($parentTasks)) return; $this->loadModel('story');