* [perf story #69154] Fix for update parent task status.

This commit is contained in:
wangyidong
2024-11-07 11:05:07 +08:00
committed by 孙广明
parent 19bc239f18
commit 86803f2d82
+1 -1
View File
@@ -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');