From 310a946e0aca6b68ec876eb94df9d3cfe92fcd45 Mon Sep 17 00:00:00 2001 From: songchenxuan Date: Tue, 29 Mar 2022 11:17:08 +0800 Subject: [PATCH] * Check locate if api. --- module/execution/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/execution/control.php b/module/execution/control.php index e8d67e00a7..d4ef2cbb54 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -3290,7 +3290,7 @@ class execution extends control $this->view->project = $project; $this->project->setMenu($projectID); - if(!empty($project->model) and $project->model == 'kanban') return $this->locate($this->createLink('project', 'index', "projectID=$projectID")); + if(!empty($project->model) and $project->model == 'kanban' and !(defined('RUN_MODE') and RUN_MODE == 'api')) return $this->locate($this->createLink('project', 'index', "projectID=$projectID")); } if($this->app->viewType == 'mhtml')