diff --git a/module/tree/control.php b/module/tree/control.php index aa0b57d77b..fbf518c380 100644 --- a/module/tree/control.php +++ b/module/tree/control.php @@ -78,6 +78,15 @@ class tree extends control /* 获取产品的分支。 Get branches of product. */ $branches = ($root->rootType == 'product' && $root->type != 'normal') ? $this->loadModel('branch')->getPairs($root->id, 'withClosed') : array(); + $isFlowModule = false; + if($this->config->edition != 'open') + { + $flow = $this->loadModel('workflow')->getByModule($from); + $isFlowModule = !empty($flow); + } + + if($isFlowModule) $this->config->excludeDropmenuList[] = "{$from}-browse"; + $this->view->title = $viewType == 'host' ? $this->lang->host->groupMaintenance : $this->lang->tree->manage; $this->view->rootID = $root->id; $this->view->root = $root; @@ -93,6 +102,7 @@ class tree extends control $this->view->from = $from; $this->view->tree = $this->tree->getProductStructure($rootID, $viewType, $branch); $this->view->canBeChanged = common::canModify($root->rootType, $root); + $this->view->isFlowModule = $isFlowModule; $this->display(); } diff --git a/module/tree/ui/browse.html.php b/module/tree/ui/browse.html.php index 36228f6bd2..3150ff24ec 100644 --- a/module/tree/ui/browse.html.php +++ b/module/tree/ui/browse.html.php @@ -273,6 +273,7 @@ div $moduleRows, set::actionsClass('justify-start'), set::submitBtnText($lang->save), + set::back($isFlowModule ? 'GLOBAL' : 'APP'), input ( set::type('hidden'),