* Adjust api return data for project.

This commit is contained in:
caoyanyi
2024-01-03 13:47:27 +08:00
parent fa52f2577a
commit bda078c87c
+5
View File
@@ -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")));