From 39b1e8ae45a9809cc2b96dcde3d44e127ca723dc Mon Sep 17 00:00:00 2001 From: liuruogu Date: Thu, 15 Sep 2022 07:08:49 +0000 Subject: [PATCH] * Finish task #69016. --- module/tree/control.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/module/tree/control.php b/module/tree/control.php index 7ec64ec211..5550b1c0d3 100644 --- a/module/tree/control.php +++ b/module/tree/control.php @@ -285,6 +285,12 @@ class tree extends control } } + if($this->app->tab == 'project' and strpos($viewType, 'doc') === false) + { + $project = $this->loadModel('project')->getByID($this->session->project); + if(empty($project->hasProduct)) $this->view->root->name = $project->name; + } + $parentModules = $this->tree->getParents($currentModuleID); $this->view->title = $title; $this->view->position = $position;