From 86803f2d82d6ab42efd158894faac450165c5b5d Mon Sep 17 00:00:00 2001 From: wangyidong Date: Thu, 7 Nov 2024 10:39:43 +0800 Subject: [PATCH] * [perf story #69154] Fix for update parent task status. --- module/task/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');