Merge branch 'feature/projecttpl2.0' into release/21.7.3

This commit is contained in:
wangyuting
2025-07-03 09:31:33 +08:00
19 changed files with 105 additions and 23 deletions
+1 -1
View File
@@ -2738,7 +2738,7 @@ class execution extends control
$executionGroups = $this->dao->select('*')->from(TABLE_EXECUTION) /* 按照项目分组,获取有权限访问的执行列表。*/
->where('deleted')->eq('0')
->andWhere('multiple')->eq('1')
->andWhere('type')->in('sprint,stage,kanban')
->andWhere('type')->in(!empty($execution->isTpl) ? 'sprint,stage' : 'sprint,stage,kanban')
->beginIF(!$this->app->user->admin)->andWhere('id')->in($this->app->user->view->sprints)->fi()
->beginIF(!empty($execution->isTpl))->andWhere('isTpl')->eq('1')->fi()
->andWhere('project')->in(array_keys($projects))