Merge branch '18.x' into 18.8.1

This commit is contained in:
tanghucheng
2023-10-17 03:45:57 -04:00
504 changed files with 5640 additions and 4276 deletions
+7 -1
View File
@@ -1096,6 +1096,11 @@ class project extends control
$this->project->setMenu($projectID);
if(!$projectID) return print(js::locate($this->createLink('project', 'browse')));
if(!$project->multiple)
{
$executionID = $this->execution->getNoMultipleID($projectID);
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")));
/* Load pager and get tasks. */
@@ -2362,7 +2367,8 @@ class project extends control
if($projectID)
{
$project = $this->project->getById($projectID);
$executions = array('' => '') + $this->loadModel('execution')->getPairs($projectID, $type, $mode);
$executions = $this->loadModel('execution')->getPairs($projectID, $type, $mode);
$executions = array('' => '') + $this->execution->resetExecutionSorts($executions, array(), array(), $projectID);
$disabled = !empty($project->multiple) ? '' : 'disabled';
}