diff --git a/module/action/lang/de.php b/module/action/lang/de.php index b416dafb40..d9ae130817 100644 --- a/module/action/lang/de.php +++ b/module/action/lang/de.php @@ -681,14 +681,7 @@ $lang->action->label->release = 'Release|release|view|productID=%s'; $lang->action->label->story = 'Story|story|view|storyID=%s'; $lang->action->label->program = "Program|program|pgmproduct|programID=%s"; $lang->action->label->project = "Project|project|index|projectID=%s"; -if($config->systemMode == 'new') -{ - $lang->action->label->execution = "Execution|execution|task|executionID=%s"; -} -else -{ - $lang->action->label->execution = "Execution|execution|task|executionID=%s"; -} +$lang->action->label->execution = "Execution|execution|task|executionID=%s"; $lang->action->label->task = 'Aufgaben|task|view|taskID=%s'; $lang->action->label->build = 'Builds|build|view|buildID=%s'; diff --git a/module/action/lang/en.php b/module/action/lang/en.php index 2afc2554f6..2f9aecbe2a 100755 --- a/module/action/lang/en.php +++ b/module/action/lang/en.php @@ -681,14 +681,7 @@ $lang->action->label->release = 'Release|release|view|productID=%s'; $lang->action->label->story = 'Story|story|view|storyID=%s'; $lang->action->label->program = "Program|program|product|programID=%s"; $lang->action->label->project = "Project|project|index|projectID=%s"; -if($config->systemMode == 'new') -{ - $lang->action->label->execution = "Execution|execution|task|executionID=%s"; -} -else -{ - $lang->action->label->execution = "$lang->executionCommon|execution|task|executionID=%s"; -} +$lang->action->label->execution = "Execution|execution|task|executionID=%s"; $lang->action->label->task = 'Task|task|view|taskID=%s'; $lang->action->label->build = 'Build|build|view|buildID=%s'; diff --git a/module/action/lang/fr.php b/module/action/lang/fr.php index 04bcf949a4..1115ad45fc 100644 --- a/module/action/lang/fr.php +++ b/module/action/lang/fr.php @@ -681,14 +681,7 @@ $lang->action->label->release = 'Release|release|view|productID=%s'; $lang->action->label->story = 'Story|story|view|storyID=%s'; $lang->action->label->program = "Program|program|pgmproduct|programID=%s"; $lang->action->label->project = "Project|program|index|projectID=%s"; -if($config->systemMode == 'new') -{ - $lang->action->label->execution = "Execution|execution|task|executionID=%s"; -} -else -{ - $lang->action->label->execution = "Execution|execution|task|executionID=%s"; -} +$lang->action->label->execution = "Execution|execution|task|executionID=%s"; $lang->action->label->task = 'Tâche|task|view|taskID=%s'; $lang->action->label->build = 'Build|build|view|buildID=%s'; diff --git a/module/action/lang/vi.php b/module/action/lang/vi.php index 93814e6516..cc7eb8e729 100644 --- a/module/action/lang/vi.php +++ b/module/action/lang/vi.php @@ -536,14 +536,7 @@ $lang->action->label->release = 'Phát hành|release|view|productID=%s'; $lang->action->label->story = 'Câu chuyện|story|view|storyID=%s'; $lang->action->label->program = "Program|program|pgmproduct|programID=%s"; $lang->action->label->project = "Project|program|index|projectID=%s"; -if($config->systemMode == 'new') -{ - $lang->action->label->execution = "Execution|execution|task|executionID=%s"; -} -else -{ - $lang->action->label->execution = "$lang->executionCommon|execution|task|executionID=%s"; -} +$lang->action->label->execution = "Execution|execution|task|executionID=%s"; $lang->action->label->task = 'Nhiệm vụ|task|view|taskID=%s'; $lang->action->label->build = 'Bản dựng|build|view|buildID=%s'; $lang->action->label->bug = 'Bug|bug|view|bugID=%s'; diff --git a/module/action/lang/zh-cn.php b/module/action/lang/zh-cn.php index 74a9785ca4..4cfa4abfe3 100755 --- a/module/action/lang/zh-cn.php +++ b/module/action/lang/zh-cn.php @@ -99,7 +99,7 @@ $lang->action->objectTypes['productplan'] = '计划'; $lang->action->objectTypes['release'] = '发布'; $lang->action->objectTypes['program'] = '项目集'; $lang->action->objectTypes['project'] = '项目'; -$lang->action->objectTypes['execution'] = $config->systemMode == 'new' ? '执行' : $lang->executionCommon; +$lang->action->objectTypes['execution'] = '执行'; $lang->action->objectTypes['task'] = '任务'; $lang->action->objectTypes['build'] = '版本'; $lang->action->objectTypes['job'] = '构建'; @@ -681,14 +681,7 @@ $lang->action->label->release = '发布|release|view|productID=%s'; $lang->action->label->story = "{$lang->SRCommon}|story|view|storyID=%s"; $lang->action->label->program = "项目集|program|product|programID=%s"; $lang->action->label->project = "项目|project|index|projectID=%s"; -if($config->systemMode == 'new') -{ - $lang->action->label->execution = "执行|execution|task|executionID=%s"; -} -else -{ - $lang->action->label->execution = "$lang->executionCommon|execution|task|executionID=%s"; -} +$lang->action->label->execution = "执行|execution|task|executionID=%s"; $lang->action->label->task = '任务|task|view|taskID=%s'; $lang->action->label->build = '版本|build|view|buildID=%s'; diff --git a/module/action/lang/zh-tw.php b/module/action/lang/zh-tw.php index dbdac896d3..f9785a8b16 100755 --- a/module/action/lang/zh-tw.php +++ b/module/action/lang/zh-tw.php @@ -90,7 +90,7 @@ $lang->action->objectTypes['productplan'] = '計劃'; $lang->action->objectTypes['release'] = '發佈'; $lang->action->objectTypes['program'] = '項目集'; $lang->action->objectTypes['project'] = '項目'; -$lang->action->objectTypes['execution'] = $config->systemMode == 'new' ? '執行' : $lang->executionCommon; +$lang->action->objectTypes['execution'] = '執行'; $lang->action->objectTypes['task'] = '任務'; $lang->action->objectTypes['build'] = '版本'; $lang->action->objectTypes['job'] = '構建'; @@ -560,20 +560,13 @@ $lang->action->dynamicAction->entry['created'] = '添加應用'; $lang->action->dynamicAction->entry['edited'] = '編輯應用'; /* 用來生成相應對象的連結。*/ -$lang->action->label->product = $lang->productCommon . '|product|view|productID=%s'; -$lang->action->label->productplan = "計劃|productplan|view|productID=%s"; -$lang->action->label->release = '發佈|release|view|productID=%s'; -$lang->action->label->story = "{$lang->SRCommon}|story|view|storyID=%s"; -$lang->action->label->program = "項目集|program|product|programID=%s"; -$lang->action->label->project = "項目|project|index|projectID=%s"; -if($config->systemMode == 'new') -{ - $lang->action->label->execution = "執行|execution|task|executionID=%s"; -} -else -{ - $lang->action->label->execution = "$lang->executionCommon|execution|task|executionID=%s"; -} +$lang->action->label->product = $lang->productCommon . '|product|view|productID=%s'; +$lang->action->label->productplan = "計劃|productplan|view|productID=%s"; +$lang->action->label->release = '發佈|release|view|productID=%s'; +$lang->action->label->story = "{$lang->SRCommon}|story|view|storyID=%s"; +$lang->action->label->program = "項目集|program|product|programID=%s"; +$lang->action->label->project = "項目|project|index|projectID=%s"; +$lang->action->label->execution = "執行|execution|task|executionID=%s"; $lang->action->label->task = '任務|task|view|taskID=%s'; $lang->action->label->build = '版本|build|view|buildID=%s'; $lang->action->label->bug = 'Bug|bug|view|bugID=%s'; diff --git a/module/action/model.php b/module/action/model.php index fc818fe750..539ea41091 100755 --- a/module/action/model.php +++ b/module/action/model.php @@ -1761,7 +1761,7 @@ class actionModel extends model $action = $this->getById($actionID); if($action->action != 'deleted') return; - if($this->config->systemMode == 'new' and $action->objectType == 'execution') + if($action->objectType == 'execution') { $execution = $this->dao->select('*')->from(TABLE_EXECUTION)->where('id')->eq($action->objectID)->fetch(); if($execution->deleted and empty($execution->project)) return print(js::error($this->lang->action->undeletedTips)); diff --git a/module/action/view/trash.html.php b/module/action/view/trash.html.php index 5ac3abe485..cb861e81e6 100755 --- a/module/action/view/trash.html.php +++ b/module/action/view/trash.html.php @@ -82,7 +82,7 @@ action->objectType);?> idAB);?> action->objectName;?> - systemMode == 'new' and $currentObjectType == 'execution'):?> + lang->project->project;?> @@ -146,7 +146,7 @@ } ?> - systemMode == 'new' and $currentObjectType == 'execution'):?> + project]->name;?> project]->deleted):?> diff --git a/module/block/control.php b/module/block/control.php index 7f2910708f..d0b12a83bf 100755 --- a/module/block/control.php +++ b/module/block/control.php @@ -1737,10 +1737,8 @@ class block extends control $this->app->loadClass('pager', true); $pager = pager::init(0, $count, 1); - $projectPairs = array(); - if($this->config->systemMode == 'new') $projectPairs = $this->dao->select('id,name')->from(TABLE_PROJECT)->where('type')->eq('project')->fetchPairs('id', 'name'); - - $projectID = $this->view->block->module == 'my' ? 0 : (int)$this->session->project; + $projectPairs = $this->dao->select('id,name')->from(TABLE_PROJECT)->where('type')->eq('project')->fetchPairs('id', 'name'); + $projectID = $this->view->block->module == 'my' ? 0 : (int)$this->session->project; $this->view->executionStats = $this->execution->getStatData($projectID, $status, 0, 0, false, 'skipParent', 'id_asc', $pager); } diff --git a/module/block/lang/vi.php b/module/block/lang/vi.php index 84f7d1f3b3..aac102a0cb 100644 --- a/module/block/lang/vi.php +++ b/module/block/lang/vi.php @@ -252,14 +252,11 @@ $lang->block->default['full']['my']['3']['grid'] = 4; $lang->block->default['full']['my']['3']['source'] = 'todo'; $lang->block->default['full']['my']['3']['params']['count'] = '20'; -if($config->systemMode == 'new') -{ - $lang->block->default['full']['my']['4']['title'] = 'Project Statistic'; - $lang->block->default['full']['my']['4']['block'] = 'statistic'; - $lang->block->default['full']['my']['4']['source'] = 'project'; - $lang->block->default['full']['my']['4']['grid'] = 8; - $lang->block->default['full']['my']['4']['params']['count'] = '20'; -} +$lang->block->default['full']['my']['4']['title'] = 'Project Statistic'; +$lang->block->default['full']['my']['4']['block'] = 'statistic'; +$lang->block->default['full']['my']['4']['source'] = 'project'; +$lang->block->default['full']['my']['4']['grid'] = 8; +$lang->block->default['full']['my']['4']['params']['count'] = '20'; $lang->block->default['full']['my']['5']['title'] = 'Personal Contribution'; $lang->block->default['full']['my']['5']['block'] = 'contribute'; @@ -284,13 +281,10 @@ $lang->block->default['full']['my']['7']['params']['issueCount'] = '20'; $lang->block->default['full']['my']['7']['params']['storyCount'] = '20'; $lang->block->default['full']['my']['7']['params']['meetingCount'] = '20'; -if($config->systemMode == 'new') -{ - $lang->block->default['full']['my']['8']['title'] = 'Human Input'; - $lang->block->default['full']['my']['8']['block'] = 'projectteam'; - $lang->block->default['full']['my']['8']['source'] = 'project'; - $lang->block->default['full']['my']['8']['grid'] = 8; -} +$lang->block->default['full']['my']['8']['title'] = 'Human Input'; +$lang->block->default['full']['my']['8']['block'] = 'projectteam'; +$lang->block->default['full']['my']['8']['source'] = 'project'; +$lang->block->default['full']['my']['8']['grid'] = 8; $lang->block->default['full']['my']['9']['title'] = 'Project List'; $lang->block->default['full']['my']['9']['block'] = 'project'; @@ -321,7 +315,7 @@ $lang->block->availableBlocks->issue = 'My Issues'; $lang->block->availableBlocks->meeting = 'My Meetings'; $lang->block->availableBlocks->feedback = 'My Feedbacks'; -if($config->systemMode == 'new') $lang->block->moduleList['project'] = 'Project'; +$lang->block->moduleList['project'] = 'Project'; $lang->block->moduleList['product'] = $lang->productCommon; $lang->block->moduleList['execution'] = $lang->execution->common; $lang->block->moduleList['qa'] = 'QA'; @@ -332,7 +326,7 @@ $lang->block->modules['project']->availableBlocks = new stdclass(); $lang->block->modules['project']->availableBlocks->project = 'Project List'; $lang->block->modules['project']->availableBlocks->recentproject = 'Recent Projects'; $lang->block->modules['project']->availableBlocks->statistic = 'Project Statistic'; -if($config->systemMode == 'new') $lang->block->modules['project']->availableBlocks->projectteam = 'ProjectHuman Input'; +$lang->block->modules['project']->availableBlocks->projectteam = 'ProjectHuman Input'; $lang->block->modules['scrum']['index'] = new stdclass(); $lang->block->modules['scrum']['index']->availableBlocks = new stdclass(); diff --git a/module/block/lang/zh-tw.php b/module/block/lang/zh-tw.php index 030dff1817..96818c2410 100644 --- a/module/block/lang/zh-tw.php +++ b/module/block/lang/zh-tw.php @@ -536,8 +536,7 @@ $lang->block->flowchart = array(); $lang->block->flowchart['admin'] = array('管理員', '維護公司', '添加用戶', '維護權限'); if($config->systemMode == 'new') $lang->block->flowchart['program'] = array('項目集負責人', '創建項目集', '關聯產品', "創建項目", "制定預算和規劃", '添加干係人'); $lang->block->flowchart['product'] = array($lang->productCommon . '經理', '創建' . $lang->productCommon, '維護模組', "維護計劃", "維護需求", '創建發佈'); -$lang->block->flowchart['project'] = array('項目經理', '創建' . $lang->executionCommon, '維護團隊', "關聯需求", '分解任務', '跟蹤進度'); -if($config->systemMode == 'new') $lang->block->flowchart['project'] = array('項目經理', '創建項目、' . $lang->executionCommon, '維護團隊', "關聯需求", '分解任務', '跟蹤進度'); +$lang->block->flowchart['project'] = array('項目經理', '創建項目、' . $lang->executionCommon, '維護團隊', "關聯需求", '分解任務', '跟蹤進度'); $lang->block->flowchart['dev'] = array('研發人員', '領取任務和Bug', '設計實現方案', '更新狀態', '完成任務和Bug', '提交代碼'); $lang->block->flowchart['tester'] = array('測試人員', '撰寫用例', '執行用例', '提交Bug', '驗證Bug', '關閉Bug'); diff --git a/module/block/view/recentprojectblock.html.php b/module/block/view/recentprojectblock.html.php index 8d865d4184..da19da4548 100644 --- a/module/block/view/recentprojectblock.html.php +++ b/module/block/view/recentprojectblock.html.php @@ -45,10 +45,8 @@
- systemMode == 'new'):?> model == 'waterfall' ? 'label-warning' : 'label-info';?> project->{$project->model};?> - name);?>
bug->module);?> bug->kanban : $lang->bug->execution);?> -systemMode);?> diff --git a/module/bug/view/edit.html.php b/module/bug/view/edit.html.php index c2fd0b8526..2d593f7593 100644 --- a/module/bug/view/edit.html.php +++ b/module/bug/view/edit.html.php @@ -24,7 +24,6 @@ js::set('oldStoryID' , $bug->story); js::set('oldTaskID' , $bug->task); js::set('oldOpenedBuild' , $bug->openedBuild); js::set('oldResolvedBuild' , $bug->resolvedBuild); -js::set('systemMode' , $config->systemMode); js::set('confirmUnlinkBuild' , sprintf($lang->bug->confirmUnlinkBuild, zget($resolvedBuilds, $bug->resolvedBuild))); js::set('tab' , $this->app->tab); js::set('bugID' , $bug->id); @@ -204,7 +203,7 @@ if($this->app->tab == 'project') js::set('objectID', $bug->project);
-
systemMode == 'class' ? $lang->bug->legendExecStoryTask : $lang->bug->legendPRJExecStoryTask;?>
+
bug->legendPRJExecStoryTask;?>
diff --git a/module/bug/view/view.html.php b/module/bug/view/view.html.php index 73442c8ef7..a7e31b2b00 100644 --- a/module/bug/view/view.html.php +++ b/module/bug/view/view.html.php @@ -14,7 +14,6 @@ bug->confirmToStory);?> -systemMode);?> tab);?> id);?> branch);?> @@ -459,7 +458,6 @@
- config->systemMode == 'new'):?> @@ -468,12 +466,6 @@ - - - - - - - systemMode == 'new' and isset($project) and $project->model == 'scrum'):?> + model == 'scrum'):?> @@ -82,7 +82,7 @@ ?> - systemMode == 'new' and isset($project) and $project->model == 'scrum'):?> + model == 'scrum'):?> diff --git a/module/execution/view/burn.html.php b/module/execution/view/burn.html.php index 4b4c52a5cd..3752cabaa5 100644 --- a/module/execution/view/burn.html.php +++ b/module/execution/view/burn.html.php @@ -36,11 +36,9 @@ if(common::canModify('execution', $execution)) common::printLink('execution', 'fixFirst', "execution=$execution->id", $lang->execution->fixFirst, '', "class='btn btn-link iframe' data-width='700'"); echo $lang->execution->howToUpdateBurn; ?> - systemMode == 'new'):?>
execution->burnByList, $burnBy, "class='form-control chosen'");?>
-
diff --git a/module/execution/view/create.html.php b/module/execution/view/create.html.php index 1fa38ba93a..b58c7dc6e8 100644 --- a/module/execution/view/create.html.php +++ b/module/execution/view/create.html.php @@ -10,13 +10,12 @@ * @link http://www.zentao.net */ ?> -systemMode == 'new');?> + createLink('execution', 'task', "execution=$executionID");?> - config->systemMode == 'new' ? 'newTipsModal' : 'classicTipsModal';?> -
bug->project;?> bug->execution;?>
execution->common;?>
bug->nextStep, "id='toTaskButton'", 'btn btn-primary btn-wide');?> diff --git a/module/caselib/model.php b/module/caselib/model.php index 8f03af8c2e..2dd597258b 100644 --- a/module/caselib/model.php +++ b/module/caselib/model.php @@ -181,7 +181,7 @@ class caselibModel extends model $lib = fixer::input('post') ->stripTags($this->config->caselib->editor->create['id'], $this->config->allowedTags) ->setForce('type', 'library') - ->setIF($this->config->systemMode == 'new' and $this->lang->navGroup->caselib != 'qa', 'project', $this->session->project) + ->setIF($this->lang->navGroup->caselib != 'qa', 'project', $this->session->project) ->add('addedBy', $this->app->user->account) ->add('addedDate', helper::now()) ->remove('uid') @@ -263,7 +263,7 @@ class caselibModel extends model $cases = $this->dao->select('*')->from(TABLE_CASE)->where($caseQuery) ->beginIF($queryLibID != 'all')->andWhere('lib')->eq((int)$libID)->fi() - ->beginIF($this->config->systemMode == 'new' and $this->app->tab != 'qa')->andWhere('project')->eq($this->session->project)->fi() + ->beginIF($this->app->tab != 'qa')->andWhere('project')->eq($this->session->project)->fi() ->andWhere('product')->eq(0) ->andWhere('deleted')->eq(0) ->orderBy($sort)->page($pager)->fetchAll(); @@ -582,7 +582,7 @@ class caselibModel extends model $data[$i]->status = $forceNotReview ? 'normal' : 'wait'; $data[$i]->version = 1; $data[$i]->project = 0; - if($this->config->systemMode == 'new' and $this->lang->navGroup->caselib != 'qa' and $this->session->project) $data[$i]->project = $this->session->project; + if($this->lang->navGroup->caselib != 'qa' and $this->session->project) $data[$i]->project = $this->session->project; $this->dao->insert(TABLE_CASE)->data($data[$i]) ->autoCheck() diff --git a/module/common/lang/de.php b/module/common/lang/de.php index c95e73e6e6..2ce99015b4 100644 --- a/module/common/lang/de.php +++ b/module/common/lang/de.php @@ -161,7 +161,7 @@ $lang->my->common = 'My'; $lang->program->common = 'Program'; $lang->product->common = 'Product'; $lang->project->common = 'Project'; -$lang->execution->common = $config->systemMode == 'new' ? 'Execution' : $lang->executionCommon; +$lang->execution->common = 'Execution'; $lang->kanban->common = 'Kanban'; $lang->qa->common = 'QA'; $lang->devops->common = 'DevOps'; diff --git a/module/common/lang/fr.php b/module/common/lang/fr.php index 1377e9ba55..3437c9ef0a 100644 --- a/module/common/lang/fr.php +++ b/module/common/lang/fr.php @@ -161,7 +161,7 @@ $lang->my->common = 'My'; $lang->program->common = 'Program'; $lang->product->common = 'Product'; $lang->project->common = 'Project'; -$lang->execution->common = $config->systemMode == 'new' ? 'Execution' : $lang->executionCommon; +$lang->execution->common = 'Execution'; $lang->kanban->common = 'Kanban'; $lang->qa->common = 'QA'; $lang->devops->common = 'DevOps'; diff --git a/module/common/lang/vi.php b/module/common/lang/vi.php index 24c0cbcd85..610ad48b75 100644 --- a/module/common/lang/vi.php +++ b/module/common/lang/vi.php @@ -138,23 +138,16 @@ list($executionModule, $executionMethod) = explode('-', $config->executionLink); /* Main menu. */ $lang->mainNav = new stdclass(); -$lang->mainNav->my = ' My|my|index|'; -$lang->mainNav->product = " Product|$productModule|$productMethod|"; -if($config->systemMode == 'new') -{ - $lang->mainNav->project = " Project|$projectModule|$projectMethod|"; - $lang->mainNav->execution = " Execution|$executionModule|$executionMethod|"; -} -else -{ - $lang->mainNav->execution = " $lang->executionCommon|$executionModule|$executionMethod|"; -} -$lang->mainNav->qa = ' Test|qa|index|'; -$lang->mainNav->repo = ' Code|repo|browse|'; -$lang->mainNav->doc = ' Doc|doc|index|'; -$lang->mainNav->report = " Statistic|report|productsummary|"; -$lang->mainNav->system = ' System|company|browse|'; -$lang->mainNav->admin = ' Admin|admin|index|'; +$lang->mainNav->my = ' My|my|index|'; +$lang->mainNav->product = " Product|$productModule|$productMethod|"; +$lang->mainNav->project = " Project|$projectModule|$projectMethod|"; +$lang->mainNav->execution = " Execution|$executionModule|$executionMethod|"; +$lang->mainNav->qa = ' Test|qa|index|'; +$lang->mainNav->repo = ' Code|repo|browse|'; +$lang->mainNav->doc = ' Doc|doc|index|'; +$lang->mainNav->report = " Statistic|report|productsummary|"; +$lang->mainNav->system = ' System|company|browse|'; +$lang->mainNav->admin = ' Admin|admin|index|'; if($config->systemMode == 'new') $lang->mainNav->program = " Program|$programModule|$programMethod|"; $lang->dividerMenu = ',qa,report,admin,'; @@ -167,14 +160,7 @@ $lang->program->menu->browse = array('link' => 'Program|program|browse|', 'alias $lang->project = new stdclass(); $lang->project->menu = new stdclass(); -if($config->systemMode == 'new') -{ - $lang->project->menu->browse = array('link' => 'Project|project|browse|'); -} -else -{ - $lang->project->menu->browse = array('link' => "$lang->executionCommon|project|browse|"); -} +$lang->project->menu->browse = array('link' => 'Project|project|browse|'); $lang->project->dividerMenu = ',execution,programplan,doc,dynamic,'; @@ -303,15 +289,8 @@ $lang->my->menu = new stdclass(); $lang->my->menu->index = 'Index|my|index'; $lang->my->menu->myWork = array('link' => 'Work|my|work|mode=task'); -if($config->systemMode == 'new') -{ - $lang->my->menu->myProject = array('link' => 'Project|my|project|'); - $lang->my->menu->myExecution = 'Execution|my|execution|type=undone'; -} -else -{ - $lang->my->menu->myExecution = $lang->executionCommon . '|my|execution|type=undone'; -} +$lang->my->menu->myProject = array('link' => 'Project|my|project|'); +$lang->my->menu->myExecution = 'Execution|my|execution|type=undone'; $lang->my->menu->contribute = array('link' => 'Contribute|my|contribute|mode=task'); $lang->my->menu->dynamic = 'Dynamic|my|dynamic|'; $lang->my->menu->score = 'Score|my|score|'; diff --git a/module/common/lang/zh-tw.php b/module/common/lang/zh-tw.php index 6f1639a445..f511b7145e 100644 --- a/module/common/lang/zh-tw.php +++ b/module/common/lang/zh-tw.php @@ -146,7 +146,7 @@ $lang->my->common = '地盤'; $lang->program->common = '項目集'; $lang->product->common = '產品'; $lang->project->common = '項目'; -$lang->execution->common = $config->systemMode == 'new' ? '執行' : $lang->executionCommon; +$lang->execution->common = '執行'; $lang->kanban->common = '看板'; $lang->qa->common = '測試'; $lang->devops->common = 'DevOps'; diff --git a/module/common/model.php b/module/common/model.php index 8717a43ee1..647d146fb1 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -611,8 +611,8 @@ class commonModel extends model if(empty($object)) unset($lang->createIcons['story'], $lang->createIcons['task'], $lang->createIcons['execution']); } - if($config->edition == 'open') unset($lang->createIcons['effort']); - if($config->systemMode != 'new') unset($lang->createIcons['program']); + if($config->edition == 'open') unset($lang->createIcons['effort']); + if($config->systemMode == 'lean') unset($lang->createIcons['program']); /* Check whether the creation permission is available, and print create buttons. */ @@ -1238,7 +1238,7 @@ class commonModel extends model echo "
idAB;?>execution->projectName;?> execution->$name;?>
project, "class='form-control picker-select' data-lastselected='{$executions[$executionID]->project}' onchange='changeProject(this, $executionID, {$executions[$executionID]->project})'");?> name, "class='form-control'");?>
- systemMode == 'new' and isset($project)):?> + model == 'scrum'):?> @@ -236,5 +236,4 @@ execution->notAllowRemoveProducts);?> execution->confirmSync);?> -systemMode);?> diff --git a/module/execution/view/managemembers.html.php b/module/execution/view/managemembers.html.php index f639c059ab..1a22fa83ed 100644 --- a/module/execution/view/managemembers.html.php +++ b/module/execution/view/managemembers.html.php @@ -11,7 +11,6 @@ */ ?> -systemMode);?> project->common);?> id);?> diff --git a/module/execution/view/manageproducts.html.php b/module/execution/view/manageproducts.html.php index 3e0ee44a79..41354fabd5 100644 --- a/module/execution/view/manageproducts.html.php +++ b/module/execution/view/manageproducts.html.php @@ -11,7 +11,6 @@ */ ?> -systemMode);?>
execution->projectName;?>