Merge branch '18.x' into 18.8.1
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user