From 064f5417571482430fcb54420968b5e4a85917d6 Mon Sep 17 00:00:00 2001 From: qiyu-xie Date: Wed, 17 Mar 2021 15:28:01 +0800 Subject: [PATCH 1/2] * Fix bug of batch edit executions. --- module/execution/control.php | 3 --- module/execution/view/batchedit.html.php | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/module/execution/control.php b/module/execution/control.php index b0bde8a7a5..3f2335728f 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -1511,8 +1511,6 @@ class execution extends control $rdUsers = $this->user->getPairs('noclosed|nodeleted|devfirst', $appendRdUsers, $this->config->maxCount); if(!empty($this->config->user->moreLink)) $this->config->moreLinks["RD"] = $this->config->user->moreLink; - $project = $this->project->getById($this->session->PRJ); - $this->view->title = $this->lang->execution->batchEdit; $this->view->position[] = $this->lang->execution->batchEdit; $this->view->executionIDList = $executionIDList; @@ -1521,7 +1519,6 @@ class execution extends control $this->view->poUsers = $poUsers; $this->view->qdUsers = $qdUsers; $this->view->rdUsers = $rdUsers; - $this->view->isStage = $project->model == 'waterfall' ? true : false; $this->display(); } diff --git a/module/execution/view/batchedit.html.php b/module/execution/view/batchedit.html.php index 58fbfc3fe9..5ccf48a5ad 100755 --- a/module/execution/view/batchedit.html.php +++ b/module/execution/view/batchedit.html.php @@ -76,7 +76,7 @@ ' style='overflow:visible'>RD, "class='form-control chosen'");?> '> type == 'stage') { echo html::select("attributes[$executionID]", $lang->stage->typeList, $executions[$executionID]->attribute, 'class=form-control'); } From 584546c34cddc472adcf7f69d5deb45416b5e6cc Mon Sep 17 00:00:00 2001 From: leiyong <1549684884@qq.com> Date: Wed, 17 Mar 2021 15:47:15 +0800 Subject: [PATCH 2/2] * Adjust code. --- framework/base/router.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/framework/base/router.class.php b/framework/base/router.class.php index 81a2a96b64..b8281b8c0f 100644 --- a/framework/base/router.class.php +++ b/framework/base/router.class.php @@ -2561,7 +2561,10 @@ class super } elseif($this->scope == 'session') { + $openApp = $this->openApp; + if(!empty($openApp) and isset($_SESSION['app-' . $openApp][$key])) return $_SESSION['app-' . $openApp][$key]; if(isset($_SESSION[$key])) return $_SESSION[$key]; + return false; } elseif($this->scope == 'env')