* [bug#64584] Add the execution PM to parent execution team.

This commit is contained in:
xieqiyu
2025-08-18 03:45:58 +00:00
parent b78f4e6669
commit 42aa63fdc0
2 changed files with 9 additions and 0 deletions
+8
View File
@@ -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;
}