From 42aa63fdc0cc2ee2f5c37ff5e0460170d21e33b1 Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Mon, 18 Aug 2025 03:45:58 +0000 Subject: [PATCH] * [bug#64584] Add the execution PM to parent execution team. --- module/execution/tao.php | 1 + module/programplan/tao.php | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/module/execution/tao.php b/module/execution/tao.php index d8b5cf6c9a..a3d42aae40 100644 --- a/module/execution/tao.php +++ b/module/execution/tao.php @@ -837,6 +837,7 @@ class executionTao extends executionModel $this->dao->insert(TABLE_TEAM)->data($member)->exec(); $teamMembers[$account] = $member; } + if($execution->acl != 'open') $this->updateUserView($executionID, 'sprint'); $this->addProjectMembers($execution->project, $teamMembers); } diff --git a/module/programplan/tao.php b/module/programplan/tao.php index 1bf9d712f2..8cd709a563 100644 --- a/module/programplan/tao.php +++ b/module/programplan/tao.php @@ -572,6 +572,14 @@ class programplanTao extends programplanModel $this->setTreePath($stageID); $this->computeProgress($stageID, 'create'); + /* Add the execution team members to parent executions. */ + $stagePath = $this->dao->findByID($stageID)->from(TABLE_PROJECT)->fetch('path'); + foreach(explode(',', $stagePath) as $stageParentID) + { + if(empty($stageParentID) || $stageParentID == $projectID) continue; + $this->execution->addExecutionMembers((int)$stageParentID, array($plan->PM)); + } + return $stageID; }