* Fix product custom whitelist upgrade issue.

This commit is contained in:
tianshujie98
2021-04-01 11:12:23 +08:00
parent b12efb31ef
commit 227c8642de
3 changed files with 47 additions and 5 deletions
+2 -2
View File
@@ -2572,8 +2572,8 @@ class execution extends control
$projects = $this->loadModel('program')->getProjectList(0, 'all', 0, 'order_asc');
$executionGroups = $this->dao->select('*')->from(TABLE_EXECUTION)
->where('id')->in($this->app->user->view->sprints)
->andWhere('deleted')->eq(0)
->where('deleted')->eq(0)
->beginIF(!$this->app->user->admin)->andWhere('id')->in($this->app->user->view->sprints)->fi()
->beginIF($this->config->systemMode == 'new')->andWhere('project')->in(array_keys($projects))->fi()
->orderBy('id_desc')
->fetchGroup('project', 'id');