From 6b09aac4aae74df2195835349e995f06bd062f43 Mon Sep 17 00:00:00 2001 From: zhouxudong Date: Thu, 17 Mar 2022 14:20:33 +0800 Subject: [PATCH] * Fix bug #20832. --- module/execution/control.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/module/execution/control.php b/module/execution/control.php index e00bc81332..6c4e66a6a3 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -1617,6 +1617,8 @@ class execution extends control $rdUsers = $this->user->getPairs('noclosed|nodeleted|devfirst', $execution->RD, $this->config->maxCount); if(!empty($this->config->user->moreLink)) $this->config->moreLinks["RD"] = $this->config->user->moreLink; + $project = $this->project->getById($execution->project); + $this->view->title = $title; $this->view->position = $position; $this->view->executions = $executions; @@ -1626,8 +1628,8 @@ class execution extends control $this->view->qdUsers = $qdUsers; $this->view->rdUsers = $rdUsers; $this->view->users = $this->user->getPairs('nodeleted|noclosed'); - $this->view->allProjects = $this->project->getPairsByModel('all', 0, 'noclosed'); - $this->view->project = $this->project->getById($execution->project); + $this->view->allProjects = $this->project->getPairsByModel($project->model, 0, 'noclosed'); + $this->view->project = $project; $this->view->groups = $this->loadModel('group')->getPairs(); $this->view->allProducts = $allProducts; $this->view->linkedProducts = $linkedProducts;