diff --git a/extension/lite/common/ext/lang/zh-cn/lite.php b/extension/lite/common/ext/lang/zh-cn/lite.php index 6e9dba0e88..e6ef798e73 100644 --- a/extension/lite/common/ext/lang/zh-cn/lite.php +++ b/extension/lite/common/ext/lang/zh-cn/lite.php @@ -88,13 +88,13 @@ $lang->kanban->menuOrder[20] = 'doc'; $lang->kanban->menuOrder[25] = 'dynamic'; $lang->kanban->menuOrder[30] = 'settings'; -$lang->execution->menu = new stdclass(); -$lang->execution->menu->kanban = array('link' => "看板|execution|kanban|executionID=%s"); -$lang->execution->menu->list = array('link' => "列表|execution|task|executionID=%s"); -if($config->edition != 'open') $lang->execution->menu->calendar = array('link' => "日历|execution|calendar|executionID=%s"); +$lang->execution->menu = new stdclass(); +$lang->execution->menu->kanban = array('link' => "看板视图|execution|kanban|executionID=%s"); +$lang->execution->menu->task = array('link' => "列表视图|execution|task|executionID=%s"); +if($config->edition != 'open') $lang->execution->menu->calendar = array('link' => "日历视图|execution|calendar|executionID=%s"); if($config->edition != 'open') $lang->execution->menu->gantt = array('link' => "甘特图|execution|gantt|executionID=%s"); -$lang->execution->menu->tree = array('link' => "树状图|execution|tree|executionID=%s"); -$lang->execution->menu->group = array('link' => "分组视图|execution|grouptask|executionID=%s"); +$lang->execution->menu->tree = array('link' => "树状图|execution|tree|executionID=%s"); +$lang->execution->menu->grouptask = array('link' => "分组视图|execution|grouptask|executionID=%s"); $lang->kanban->menu->doc['subMenu'] = new stdclass(); diff --git a/extension/lite/execution/ext/control/kanban.php b/extension/lite/execution/ext/control/kanban.php index e45f8e5cfd..a3182a6c3d 100644 --- a/extension/lite/execution/ext/control/kanban.php +++ b/extension/lite/execution/ext/control/kanban.php @@ -7,11 +7,33 @@ class myExecution extends execution $this->app->loadLang('kanban'); common::setMenuVars('execution', $executionID); - $execution = $this->execution->getById($executionID); + $currentMethod = $this->app->methodName; + $execution = $this->execution->getById($executionID); $this->loadModel('project')->setMenu($execution->project); - $this->lang->kanban->menu->execution['subMenu'] = $this->lang->execution->menu; + $this->lang->kanban->menu->execution['subMenu'] = new stdClass(); + + /* change subMenu to sub select menu */ + $subMenu = $this->lang->execution->menu; + foreach($subMenu as $key => $value) + { + $tmpValue = explode('|', $value['link']); + $subMenu->$key['name'] = $tmpValue[0]; + $subMenu->$key['module'] = $tmpValue[1]; + $subMenu->$key['method'] = $tmpValue[2]; + $subMenu->$key['vars'] = $tmpValue[3]; + } $TRActions = ''; + $TRActions .= "