diff --git a/module/execution/control.php b/module/execution/control.php index 35340f8ba9..fbd5b4af95 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -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; diff --git a/module/tree/model.php b/module/tree/model.php index 5318dcdc09..5a9746c715 100644 --- a/module/tree/model.php +++ b/module/tree/model.php @@ -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();