This commit is contained in:
tianshujie
2021-09-13 09:52:24 +08:00
parent 62bcf528b2
commit 8219bc43d3
2 changed files with 17 additions and 15 deletions
+2 -11
View File
@@ -2478,22 +2478,13 @@ class executionModel extends model
{
if(empty($projectID) and $this->config->systemMode == 'new') return array();
$objects = $this->dao->select('id,name,type')->from(TABLE_PROJECT)
$teamPairs = $this->dao->select('id,name')->from(TABLE_PROJECT)
->where('deleted')->eq(0)
->andWhere('(project')->eq($projectID)
->orWhere('id')->eq($projectID)
->markRight(1)
->orderBy('project_asc')
->fetchAll('id');
if(empty($objects)) return array();
$teamPairs = array();
foreach($objects as $id => $object)
{
$prefix = ($object->type != 'project' and $this->config->systemMode == 'new') ? '   ' : '';
$teamPairs[$id] = $prefix . $object->name;
}
->fetchPairs();
return $teamPairs;
}