From a702b7cf5b7783cd7cbf36bc9d4d7837609168f0 Mon Sep 17 00:00:00 2001 From: Wenrui LI Date: Mon, 21 Mar 2022 15:46:08 +0800 Subject: [PATCH 1/2] * remove score menus from lite vision, task #51309. --- extension/lite/common/ext/lang/en/lite.php | 1 - extension/lite/common/ext/lang/zh-cn/lite.php | 1 - extension/lite/custom/ext/lang/en/lite.php | 2 +- extension/lite/custom/ext/lang/zh-cn/lite.php | 2 +- 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/extension/lite/common/ext/lang/en/lite.php b/extension/lite/common/ext/lang/en/lite.php index 1bceb9a274..c52725fcb6 100644 --- a/extension/lite/common/ext/lang/en/lite.php +++ b/extension/lite/common/ext/lang/en/lite.php @@ -58,7 +58,6 @@ $lang->my->menu->index = array('link' => "$lang->dashboard|my|index"); $lang->my->menu->calendar = array('link' => "$lang->calendar|my|calendar|", 'subModule' => 'todo', 'alias' => 'todo'); $lang->my->menu->task = array('link' => "{$lang->task->common}|my|contribute|mode=task&type=assignedTo", 'subModule' => 'task'); $lang->my->menu->contacts = array('link' => "$lang->contact|my|managecontacts|"); -if($config->systemScore) $lang->my->menu->score = array('link' => "{$lang->score->shortCommon}|my|score|", 'subModule' => 'score'); global $config; if($config->edition != 'open') $lang->my->menu->effort = array('link' => 'Effort|effort|calendar|', 'exclude' => 'my-todo'); diff --git a/extension/lite/common/ext/lang/zh-cn/lite.php b/extension/lite/common/ext/lang/zh-cn/lite.php index 337aa5b160..7a179efba3 100644 --- a/extension/lite/common/ext/lang/zh-cn/lite.php +++ b/extension/lite/common/ext/lang/zh-cn/lite.php @@ -58,7 +58,6 @@ $lang->my->menu->index = array('link' => "$lang->dashboard|my|index"); $lang->my->menu->calendar = array('link' => "$lang->calendar|my|calendar|", 'subModule' => 'todo', 'alias' => 'todo'); $lang->my->menu->task = array('link' => "{$lang->task->common}|my|contribute|mode=task&type=assignedTo", 'subModule' => 'task'); $lang->my->menu->contacts = array('link' => "$lang->contact|my|managecontacts|"); -if($config->systemScore) $lang->my->menu->score = array('link' => "{$lang->score->shortCommon}|my|score|", 'subModule' => 'score'); global $config; if($config->edition != 'open') $lang->my->menu->effort = array('link' => '日志|effort|calendar|', 'exclude' => 'my-todo'); diff --git a/extension/lite/custom/ext/lang/en/lite.php b/extension/lite/custom/ext/lang/en/lite.php index 562983de4d..849bfdcfe2 100644 --- a/extension/lite/custom/ext/lang/en/lite.php +++ b/extension/lite/custom/ext/lang/en/lite.php @@ -25,4 +25,4 @@ $lang->custom->story->fields['reviewRules'] = 'Review Rules'; $lang->custom->story->fields['reviewResultList'] = 'Review Result'; $lang->custom->story->fields['review'] = 'Need Review'; -if($this->config->edition != 'open') $lang->custom->system = array('required', 'score'); +$lang->custom->system = array('required', 'flow'); // remove score from menu diff --git a/extension/lite/custom/ext/lang/zh-cn/lite.php b/extension/lite/custom/ext/lang/zh-cn/lite.php index a1b67f9dae..950e470ab8 100644 --- a/extension/lite/custom/ext/lang/zh-cn/lite.php +++ b/extension/lite/custom/ext/lang/zh-cn/lite.php @@ -26,4 +26,4 @@ $lang->custom->story->fields['reviewRules'] = '评审规则'; $lang->custom->story->fields['reviewResultList'] = '评审结果'; $lang->custom->story->fields['review'] = '评审流程'; -if($this->config->edition != 'open') $lang->custom->system = array('required', 'score'); +$lang->custom->system = array('required', 'flow'); // remove score from menu From d48f1b6d416213d816ecfe6ab83d081b578f04c5 Mon Sep 17 00:00:00 2001 From: Wenrui LI Date: Tue, 22 Mar 2022 09:07:43 +0800 Subject: [PATCH 2/2] * remove flow as well. --- extension/lite/custom/ext/lang/en/lite.php | 2 +- extension/lite/custom/ext/lang/zh-cn/lite.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extension/lite/custom/ext/lang/en/lite.php b/extension/lite/custom/ext/lang/en/lite.php index 849bfdcfe2..bfe39b23ad 100644 --- a/extension/lite/custom/ext/lang/en/lite.php +++ b/extension/lite/custom/ext/lang/en/lite.php @@ -25,4 +25,4 @@ $lang->custom->story->fields['reviewRules'] = 'Review Rules'; $lang->custom->story->fields['reviewResultList'] = 'Review Result'; $lang->custom->story->fields['review'] = 'Need Review'; -$lang->custom->system = array('required', 'flow'); // remove score from menu +$lang->custom->system = array('required'); diff --git a/extension/lite/custom/ext/lang/zh-cn/lite.php b/extension/lite/custom/ext/lang/zh-cn/lite.php index 950e470ab8..b7fec903d2 100644 --- a/extension/lite/custom/ext/lang/zh-cn/lite.php +++ b/extension/lite/custom/ext/lang/zh-cn/lite.php @@ -26,4 +26,4 @@ $lang->custom->story->fields['reviewRules'] = '评审规则'; $lang->custom->story->fields['reviewResultList'] = '评审结果'; $lang->custom->story->fields['review'] = '评审流程'; -$lang->custom->system = array('required', 'flow'); // remove score from menu +$lang->custom->system = array('required');