From cec71ebfd8b5eb53b91903a4d3ec6fa2895ff7e5 Mon Sep 17 00:00:00 2001 From: zhouxudong Date: Wed, 11 May 2022 04:10:30 +0000 Subject: [PATCH] * Finish task #53651. --- module/execution/control.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/module/execution/control.php b/module/execution/control.php index 25f8e63cb8..ba411988dd 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -1678,8 +1678,9 @@ class execution extends control if($this->app->tab == 'project') { $projectID = $this->session->project; + $project = $this->project->getById($projectID); $this->project->setMenu($projectID); - $this->view->project = $this->project->getById($projectID); + $this->view->project = $project; } if(!$this->post->executionIDList) return print(js::locate($this->session->executionList, 'parent')); @@ -1717,7 +1718,7 @@ class execution extends control $this->view->position[] = $this->lang->execution->batchEdit; $this->view->executionIDList = $executionIDList; $this->view->executions = $executions; - $this->view->allProjects = $this->project->getPairsByModel('all', 0, 'noclosed', isset($projectID) ? $projectID : 0); + $this->view->allProjects = $this->project->getPairsByModel($project->model, 0, 'noclosed', isset($projectID) ? $projectID : 0); $this->view->pmUsers = $pmUsers; $this->view->poUsers = $poUsers; $this->view->qdUsers = $qdUsers;