Merge branch 'sprint_204_57094' into 'master'

Sprint 204 57094

See merge request easycorp/zentaopms!3928
This commit is contained in:
孙广明
2022-06-15 03:09:37 +00:00
2 changed files with 56 additions and 0 deletions
+10
View File
@@ -2063,6 +2063,16 @@ class execution extends control
$executionID = $this->execution->saveState((int)$executionID, $this->executions);
$execution = $this->execution->getById($executionID, true);
$execution->projectInfo = $this->loadModel('project')->getByID($execution->project);
if($this->config->systemMode == 'new')
{
$programList = array_filter(explode(',', $execution->projectInfo->path));
array_pop($programList);
$this->view->programList = $this->loadModel('program')->getPairsByList($programList);
}
$type = $this->config->vision == 'lite' ? 'kanban' : 'stage,sprint,kanban';
if(empty($execution) || strpos($type, $execution->type) === false) return print(js::error($this->lang->notFound) . js::locate('back'));