* Fix bug for task #54336.

This commit is contained in:
liumengyi
2022-05-18 11:15:21 +08:00
parent aacfdcdc1c
commit e83da7c524
2 changed files with 1 additions and 11 deletions
+1 -1
View File
@@ -1452,7 +1452,7 @@ class execution extends control
$this->view->name = $name;
$this->view->code = $code;
$this->view->team = $team;
$this->view->teams = array(0 => '') + $this->execution->getCanCopyObjects((int)$projectID);
$this->view->teams = array(0 => '', $projectID => $project->name) + $this->execution->getCanCopyObjects((int)$projectID);
$this->view->allProjects = array(0 => '') + $this->project->getPairsByModel('all', 0, 'noclosed');
$this->view->executionID = $executionID;
$this->view->productID = $productID;
-10
View File
@@ -2702,16 +2702,6 @@ class executionModel extends model
if(empty($projectID) and $this->config->systemMode == 'new') return array();
$objectPairs = $this->dao->select('id,name')->from(TABLE_PROJECT)
->where('deleted')->eq(0)
->andWhere('type')->eq('project')
->andWhere('(project')->eq($projectID)
->orWhere('id')->eq($projectID)
->markRight(1)
->orderBy('openedDate_desc')
->limit('9')
->fetchPairs();
$objectPairs += $this->dao->select('id,name')->from(TABLE_PROJECT)
->where('deleted')->eq(0)
->andWhere('type')->ne('project')
->andWhere('(project')->eq($projectID)