* Code for task#45536.

This commit is contained in:
xieqiyu
2021-12-10 10:57:56 +08:00
parent 821fd3644c
commit ad8ed52f22
16 changed files with 78 additions and 29 deletions
+2 -2
View File
@@ -424,7 +424,7 @@ class task extends control
$tasks = $this->task->getParentTaskPairs($this->view->execution->id, $this->view->task->parent);
if(isset($tasks[$taskID])) unset($tasks[$taskID]);
if($this->config->systemMode == 'classic')
if($this->config->systemMode == 'classic')
{
$executionsPair = $this->execution->getPairs();
}
@@ -432,7 +432,7 @@ class task extends control
{
$executionsPair = array();
$executions = $this->execution->getByProject(0, 'all', 0);
$projects = $this->project->getPairsByProgram(0, 'noclosed');
$projects = $this->project->getPairsByProgram('', 'noclosed');
foreach($executions as $executionId => $execution)
{
$executionsPair[$executionId] = (isset($projects[$execution->project]) ? $projects[$execution->project] . ' / ' : '') . $execution->name;