From 02476229d9c1bc889a0075d862931e938473ff5a Mon Sep 17 00:00:00 2001 From: zhouxudong Date: Wed, 11 May 2022 06:59:17 +0000 Subject: [PATCH] * Fix bug #22337. --- module/execution/control.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/module/execution/control.php b/module/execution/control.php index c8d4bc9af8..f711a2b2a1 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -1677,11 +1677,11 @@ class execution extends control if($this->app->tab == 'project') { - $projectID = $this->session->project; - $project = $this->project->getById($projectID); + $projectID = $this->session->project; + $project = $this->project->getById($projectID); + $allProjects = $this->project->getPairsByModel($project->model, 0, 'noclosed', isset($projectID) ? $projectID : 0); $this->project->setMenu($projectID); - $this->view->project = $project; - $allProjects = $this->project->getPairsByModel($project->model, 0, 'noclosed', isset($projectID) ? $projectID : 0); + $this->view->project = $project; } else { @@ -1719,8 +1719,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; - $allProjects = $this->project->getPairsByModel('all', 0, 'noclosed', isset($projectID) ? $projectID : 0); - $this->view->title = $this->lang->execution->batchEdit; $this->view->position[] = $this->lang->execution->batchEdit; $this->view->executionIDList = $executionIDList;