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; }