From f49819982009bb7abc9c046630760da245cdee19 Mon Sep 17 00:00:00 2001 From: zhouxudong Date: Wed, 11 May 2022 06:55:32 +0000 Subject: [PATCH] * Fix bug #22337. --- module/execution/control.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/module/execution/control.php b/module/execution/control.php index 3d95dbd45b..c8d4bc9af8 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -1681,7 +1681,11 @@ class execution extends control $project = $this->project->getById($projectID); $this->project->setMenu($projectID); $this->view->project = $project; - $allProjectsFromProject = $this->project->getPairsByModel($project->model, 0, 'noclosed', isset($projectID) ? $projectID : 0); + $allProjects = $this->project->getPairsByModel($project->model, 0, 'noclosed', isset($projectID) ? $projectID : 0); + } + else + { + $allProjects = $this->project->getPairsByModel('all', 0, 'noclosed', isset($projectID) ? $projectID : 0); } if(!$this->post->executionIDList) return print(js::locate($this->session->executionList, 'parent')); @@ -1721,7 +1725,7 @@ class execution extends control $this->view->position[] = $this->lang->execution->batchEdit; $this->view->executionIDList = $executionIDList; $this->view->executions = $executions; - $this->view->allProjects = $this->app->tab == 'project' ? $allProjectsFromProject : $allProjects; + $this->view->allProjects = $allProjects; $this->view->pmUsers = $pmUsers; $this->view->poUsers = $poUsers; $this->view->qdUsers = $qdUsers;