* Fix the module tree under execution.

This commit is contained in:
tianshujie
2021-11-30 17:24:11 +08:00
parent eda9acb2ae
commit be15ba6045
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -837,7 +837,7 @@ class execution extends control
$this->view->orderBy = $orderBy;
$this->view->type = $this->session->executionStoryBrowseType;
$this->view->param = $param;
$this->view->moduleTree = $this->loadModel('tree')->getProjectStoryTreeMenu($executionID, $startModuleID = 0, array('treeModel', 'createStoryLink'));
$this->view->moduleTree = $this->loadModel('tree')->getProjectStoryTreeMenu($executionID, 0, array('treeModel', 'createStoryLink'));
$this->view->modulePairs = $modulePairs;
$this->view->tabID = 'story';
$this->view->storyTasks = $storyTasks;
+2 -1
View File
@@ -821,7 +821,8 @@ class treeModel extends model
/* tree menu. */
$tree = '';
if(empty($branchGroups[$id])) $branchGroups[$id]['0'] = '';
if(empty($branchGroups[$id])) $branchGroups[$id][BRANCH_MAIN] = '';
if(!empty($branchGroups[$id])) $branchGroups[$id][BRANCH_MAIN] = $this->lang->branch->main;
foreach($branchGroups[$id] as $branch => $branchName)
{
$treeMenu = array();