diff --git a/module/execution/control.php b/module/execution/control.php index 72141b9beb..7cae7d2dae 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -1557,7 +1557,8 @@ class execution extends control $executionID = $this->execution->checkAccess((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 $this->sendError($this->lang->notFound, true); + + 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($execution->type == 'kanban' and defined('RUN_MODE') and RUN_MODE == 'api') return print($this->fetch('execution', 'kanban', "executionID=$executionID"));