From 290fccfef0549ff432db8da9fe2e75a1a6a4001f Mon Sep 17 00:00:00 2001 From: tianshujie98 Date: Thu, 29 Apr 2021 11:04:22 +0800 Subject: [PATCH] * Fix bug #12453. --- module/bug/control.php | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/module/bug/control.php b/module/bug/control.php index 9bf56305b2..cccc23e0c0 100644 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -704,15 +704,18 @@ class bug extends control if($bug->assignedTo == $this->app->user->account) $this->loadModel('action')->read('bug', $bugID); /* Set menu. */ - if($this->app->openApp == 'project') $this->loadModel('project')->setMenu($bug->project); - if($this->app->openApp == 'execution') $this->loadModel('execution')->setMenu($bug->execution); - if($this->app->openApp == 'qa') $this->qa->setMenu($this->products, $bug->product, $bug->branch); - if($this->app->openApp == 'devops') + if(!isonlybody()) { - session_write_close(); - $repos = $this->loadModel('repo')->getRepoPairs($bug->project); - $this->repo->setMenu($repos); - $this->lang->navGroup->bug = 'devops'; + if($this->app->openApp == 'project') $this->loadModel('project')->setMenu($bug->project); + if($this->app->openApp == 'execution') $this->loadModel('execution')->setMenu($bug->execution); + if($this->app->openApp == 'qa') $this->qa->setMenu($this->products, $bug->product, $bug->branch); + if($this->app->openApp == 'devops') + { + session_write_close(); + $repos = $this->loadModel('repo')->getRepoPairs($bug->project); + $this->repo->setMenu($repos); + $this->lang->navGroup->bug = 'devops'; + } } /* Get product info. */