This commit is contained in:
tianshujie
2022-11-07 09:11:40 +08:00
parent 9f87785a72
commit 2176378af6
5 changed files with 18 additions and 14 deletions
+3 -3
View File
@@ -2280,6 +2280,9 @@ class execution extends control
$executionID = $this->execution->saveState((int)$executionID, $this->executions);
$execution = $this->execution->getById($executionID, true);
$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'));
$execution->projectInfo = $this->loadModel('project')->getByID($execution->project);
if($this->config->systemMode == 'new')
@@ -2289,9 +2292,6 @@ class execution extends control
$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'));
if($execution->type == 'kanban' and defined('RUN_MODE') and RUN_MODE == 'api') return print($this->fetch('execution', 'kanban', "executionID=$executionID"));
$this->app->loadLang('program');