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. */