From bda078c87ca83f2fb23184745a89f7c7616397e9 Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Wed, 3 Jan 2024 13:47:27 +0800 Subject: [PATCH] * Adjust api return data for project. --- module/project/control.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/module/project/control.php b/module/project/control.php index 7dd0963322..285b6a45c7 100755 --- a/module/project/control.php +++ b/module/project/control.php @@ -1099,6 +1099,11 @@ class project extends control if(!$project->multiple) { $executionID = $this->execution->getNoMultipleID($projectID); + if(defined('RUN_MODE') && RUN_MODE == 'api') + { + $this->view->executionStats = array($this->execution->getByID($executionID)); + return $this->display(); + } return print(js::locate($this->createLink('execution', 'task', "executionID=$executionID"))); } if(!empty($project->model) and $project->model == 'kanban' and !(defined('RUN_MODE') and RUN_MODE == 'api')) return print(js::locate($this->createLink('project', 'index', "projectID=$projectID")));