From aa9bc2b8ec86620f6a388ab3e0d699952467aff5 Mon Sep 17 00:00:00 2001
From: wangyuting2 <851424971@qq.com>
Date: Mon, 10 Oct 2022 07:32:11 +0000
Subject: [PATCH] * Fix systemMode bug.
---
module/action/lang/de.php | 9 +---
module/action/lang/en.php | 9 +---
module/action/lang/fr.php | 9 +---
module/action/lang/vi.php | 9 +---
module/action/lang/zh-cn.php | 11 +----
module/action/lang/zh-tw.php | 23 ++++-----
module/action/model.php | 2 +-
module/action/view/trash.html.php | 4 +-
module/block/control.php | 6 +--
module/block/lang/vi.php | 28 +++++------
module/block/lang/zh-tw.php | 3 +-
module/block/view/recentprojectblock.html.php | 2 -
module/bug/js/common.js | 10 +---
module/bug/js/view.js | 10 +---
module/bug/lang/de.php | 2 +-
module/bug/lang/en.php | 2 +-
module/bug/lang/fr.php | 2 +-
module/bug/view/ajaxgetdropmenu.html.php | 2 +-
module/bug/view/batchcreate.html.php | 10 ----
module/bug/view/create.html.php | 1 -
module/bug/view/edit.html.php | 3 +-
module/bug/view/view.html.php | 8 ----
module/caselib/model.php | 6 +--
module/common/lang/de.php | 2 +-
module/common/lang/fr.php | 2 +-
module/common/lang/vi.php | 47 +++++--------------
module/common/lang/zh-tw.php | 2 +-
module/common/model.php | 6 +--
module/company/config.php | 2 +-
module/company/view/dynamic.html.php | 1 -
module/custom/config.php | 2 +-
module/custom/control.php | 8 +---
module/custom/lang/vi.php | 21 +++------
module/custom/lang/zh-tw.php | 20 ++------
module/doc/control.php | 2 +-
module/doc/lang/de.php | 2 +-
module/doc/lang/en.php | 2 +-
module/doc/lang/fr.php | 2 +-
module/doc/lang/zh-cn.php | 2 +-
module/doc/lang/zh-tw.php | 2 +-
module/doc/model.php | 4 +-
module/execution/config.php | 28 +++++------
module/execution/js/common.js | 2 +-
module/execution/js/create.js | 25 +++++-----
module/execution/js/managemembers.js | 25 +++++-----
module/execution/lang/de.php | 12 +----
module/execution/lang/en.php | 12 +----
module/execution/lang/fr.php | 12 +----
module/execution/lang/vi.php | 16 ++-----
module/execution/lang/zh-cn.php | 12 +----
module/execution/lang/zh-tw.php | 28 ++++-------
module/execution/model.php | 6 +--
.../execution/view/ajaxgetdropmenu.html.php | 10 ++--
module/execution/view/all.html.php | 4 +-
module/execution/view/batchedit.html.php | 4 +-
module/execution/view/burn.html.php | 2 -
module/execution/view/create.html.php | 11 ++---
module/execution/view/edit.html.php | 5 +-
module/execution/view/managemembers.html.php | 1 -
module/execution/view/manageproducts.html.php | 1 -
module/execution/view/tips.html.php | 2 +-
module/execution/view/view.html.php | 2 -
module/group/control.php | 7 +--
module/group/model.php | 2 +-
module/group/view/managemember.html.php | 2 +-
module/kanban/view/importrelease.html.php | 4 --
module/kanban/view/view.html.php | 1 -
module/kanban/view/viewarchivedcard.html.php | 1 -
module/my/view/selectproject.html.php | 1 -
module/personnel/control.php | 3 +-
module/personnel/js/addwhitelist.js | 2 +-
module/personnel/model.php | 37 ++++++---------
module/personnel/view/addwhitelist.html.php | 1 -
module/product/control.php | 2 +-
module/product/js/kanban.js | 2 +-
module/product/view/kanban.html.php | 13 ++---
module/product/view/project.html.php | 14 ++----
module/product/view/view.html.php | 2 -
module/productplan/js/browse.js | 10 +---
module/productplan/model.php | 10 +---
module/productplan/view/browse.html.php | 1 -
module/programplan/model.php | 2 +-
module/project/control.php | 17 +++----
module/project/lang/en.php | 2 +-
module/project/lang/fr.php | 2 +-
module/project/lang/zh-cn.php | 2 +-
module/project/model.php | 3 +-
module/project/view/kanban.html.php | 2 +-
module/report/view/projectdeviation.html.php | 4 --
module/report/view/workload.html.php | 8 ++--
module/search/control.php | 6 +--
module/search/model.php | 2 +-
module/stakeholder/view/batchcreate.html.php | 2 +-
module/story/control.php | 2 +-
module/story/lang/de.php | 2 +-
module/story/lang/en.php | 2 +-
module/story/lang/fr.php | 2 +-
module/story/lang/vi.php | 2 +-
module/story/lang/zh-cn.php | 2 +-
module/story/lang/zh-tw.php | 2 +-
module/story/model.php | 4 +-
module/task/model.php | 14 +++---
module/testcase/model.php | 6 +--
module/testreport/model.php | 2 +-
module/testsuite/model.php | 12 ++---
module/testtask/model.php | 15 +++---
module/todo/view/view.html.php | 7 +--
107 files changed, 239 insertions(+), 522 deletions(-)
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);?>
|