From 6798a9cb46ee45993f76f02fc17e8199abb419ad Mon Sep 17 00:00:00 2001 From: zenggang Date: Sun, 26 Sep 2021 17:10:11 +0800 Subject: [PATCH] * Fix bug#15280 --- module/execution/control.php | 2 ++ module/execution/model.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/module/execution/control.php b/module/execution/control.php index b71cf5abfd..d30352787b 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -140,6 +140,8 @@ class execution extends control if(common::hasPriv('execution', 'create')) $this->lang->TRActions = html::a($this->createLink('execution', 'create'), " " . $this->lang->execution->create, '', "class='btn btn-primary'"); + if(!isset($_SESSION['limitedExecutions'])) $this->execution->getLimitedExecution(); + /* Set browse type. */ $browseType = strtolower($status); diff --git a/module/execution/model.php b/module/execution/model.php index b9108f8aa1..8b87219dea 100644 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -1416,7 +1416,7 @@ class executionModel extends model /* Get all teams of all executions and group by executions, save it as static. */ $executions = $this->dao->select('root, limited')->from(TABLE_TEAM) - ->where('type')->in('sprint,stage') + ->where('type')->eq('execution') ->andWhere('account')->eq($this->app->user->account) ->andWhere('limited')->eq('yes') ->orderBy('root asc')