* Fix search lite story locate bug. bug #48063.

This commit is contained in:
wangyuting
2024-04-19 14:50:06 +08:00
parent 89733f022f
commit 142bc19732
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1595,7 +1595,7 @@ class execution extends control
$execution = $this->execution->getByID($executionID, true);
$type = $this->config->vision == 'lite' ? 'kanban' : 'stage,sprint,kanban';
if(empty($execution) || strpos($type, $execution->type) === false) return $this->send(array('result' => 'success', 'load' => array('alert' => $this->lang->notFound, 'locate' => $this->createLink('execution', 'all'))));
if(empty($execution) || strpos($type, $execution->type) === false) return $this->send(array('result' => 'success', 'load' => array('alert' => $this->lang->notFound, 'locate' => $this->config->vision == 'lite' ? $this->createLink('project', 'index') : $this->createLink('execution', 'all'))));
if($execution->type == 'kanban' and defined('RUN_MODE') and RUN_MODE == 'api') return print($this->fetch('execution', 'kanban', "executionID=$executionID"));