diff --git a/module/index/js/index.js b/module/index/js/index.js index 4791c833d4..6c78c59702 100644 --- a/module/index/js/index.js +++ b/module/index/js/index.js @@ -113,9 +113,9 @@ var viewType = link.params.viewType || link.params.$2; if(['bug', 'case', 'caselib'].includes(viewType)) return 'project'; - if(viewType === 'doc' && link.params.from === 'product') return 'product'; - if(viewType === 'doc' && link.params.from === 'project') return 'project'; - if(viewType === 'doc' && link.params.from === 'doc') return 'doc'; + if(viewType === 'doc' && (link.params.from === 'product' || link.params.$5 == 'product')) return 'product'; + if(viewType === 'doc' && (link.params.from === 'project' || link.params.$5 == 'project')) return 'project'; + if(viewType === 'doc') return 'doc'; } else if(methodLowerCase === 'browsetask') { diff --git a/module/tree/control.php b/module/tree/control.php index 9a97937361..90c5d8b6ac 100644 --- a/module/tree/control.php +++ b/module/tree/control.php @@ -160,6 +160,9 @@ class tree extends control $this->lang->navGroup->tree = 'project'; $this->lang->tree->menu = $this->lang->project->menu; $this->lang->tree->menuOrder = $this->lang->project->menuOrder; + + /* The PRJ parameter needs to be present when the tree module belongs to the project grouping. */ + if($this->session->docList && $this->session->PRJ && strpos($this->session->docList, 'PRJ') === false) $this->session->set('docList', $this->session->docList . '?PRJ=' . $this->session->PRJ); } if($from == 'doc') $this->lang->navGroup->doc = 'doc'; diff --git a/module/tree/view/browse.html.php b/module/tree/view/browse.html.php index faaa66af59..b0b13ed128 100644 --- a/module/tree/view/browse.html.php +++ b/module/tree/view/browse.html.php @@ -10,16 +10,10 @@ * @link http://www.zentao.net */ ?> - navGroup->doc == 'doc'):?> - +doc->appendNavCSS();?> +