* [task#131031,doing,0.5h] process 1.5 dropmenu and back link.

This commit is contained in:
tianshujie
2024-11-07 08:58:35 +08:00
committed by 刘刚
parent 217a846485
commit 0a7595c780
2 changed files with 11 additions and 0 deletions
+10
View File
@@ -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();
}
+1
View File
@@ -273,6 +273,7 @@ div
$moduleRows,
set::actionsClass('justify-start'),
set::submitBtnText($lang->save),
set::back($isFlowModule ? 'GLOBAL' : 'APP'),
input
(
set::type('hidden'),