From 8cd37c37e19f51a9d86ffe43265e4918b4b96d07 Mon Sep 17 00:00:00 2001 From: chenfeiCF Date: Tue, 20 Nov 2018 10:12:15 +0800 Subject: [PATCH] * Adjust code for task #5060. --- module/bug/view/browse.html.php | 28 +++------------------------ module/my/view/bug.html.php | 8 +------- module/my/view/story.html.php | 10 ++-------- module/product/view/browse.html.php | 29 ++++------------------------ module/project/view/bug.html.php | 8 +------- module/project/view/task.html.php | 19 ++---------------- module/testcase/view/browse.html.php | 18 ++--------------- module/testtask/view/cases.html.php | 10 +--------- 8 files changed, 16 insertions(+), 114 deletions(-) diff --git a/module/bug/view/browse.html.php b/module/bug/view/browse.html.php index d61bfcb34a..0147853aff 100644 --- a/module/bug/view/browse.html.php +++ b/module/bug/view/browse.html.php @@ -296,14 +296,7 @@ $currentBrowseType = isset($lang->bug->mySelects[$browseType]) && in_array($brow - $branchName) - { - $branchNames[] = $branchName; - } - $branchsPinYin = common::convert2Pinyin($branchNames); - ?> + - $module) - { - $moduleNames[] = $module; - } - $modulesPinYin = common::convert2Pinyin($moduleNames); - ?> + - $member) - { - if(empty($memberId)) continue; - $memberNames[] = $member; - } - $membersPinYin = common::convert2Pinyin($memberNames); - ?> + '; - $memberNames = array(); - foreach($memberPairs as $memberId => $member) - { - if(empty($memberId)) continue; - $memberNames[] = $member; - } - $membersPinYin = common::convert2Pinyin($memberNames); + $membersPinYin = common::convert2Pinyin($memberPairs); } else { diff --git a/module/my/view/story.html.php b/module/my/view/story.html.php index 9b35b4e7c0..ac9adf91b8 100644 --- a/module/my/view/story.html.php +++ b/module/my/view/story.html.php @@ -156,13 +156,7 @@ echo ''; echo ''; echo ''; - $memberNames = array(); - foreach($memberPairs as $memberId => $member) - { - if(empty($memberId)) continue; - $memberNames[] = $member; - } - $membersPinYin = common::convert2Pinyin($memberNames); + $usersPinYin = common::convert2Pinyin($users); } else { @@ -172,7 +166,7 @@ foreach($users as $key => $value) { if(empty($key) or $key == 'closed') continue; - $searchKey = $withSearch ? ('data-key="' . zget($membersPinYin, $value, '') . " @$key\"") : "data-key='@$key'"; + $searchKey = $withSearch ? ('data-key="' . zget($usersPinYin, $value, '') . " @$key\"") : "data-key='@$key'"; echo html::a('javascript:$(".table-actions #assignedTo").val("' . $key . '");setFormAction("' . $actionLink . '")', ' ' . $value, '', $searchKey); } echo ""; diff --git a/module/product/view/browse.html.php b/module/product/view/browse.html.php index 1c964a04da..b7bd6c5ea5 100644 --- a/module/product/view/browse.html.php +++ b/module/product/view/browse.html.php @@ -297,13 +297,7 @@ - $module) - { - $moduleNames[] = $module; - } - $modulesPinYin = common::convert2Pinyin($moduleNames); +
@@ -334,14 +328,7 @@
- $plan) - { - $planNames[] = $plan; - } - $plansPinYin = common::convert2Pinyin($planNames); - ?> +
- $module) - { - $moduleNames[] = $module; - } - $modulesPinYin = common::convert2Pinyin($moduleNames); - ?> + - $member) - { - if(empty($memberId)) continue; - $memberNames[] = $member; - } - $membersPinYin = common::convert2Pinyin($memberNames); - ?> + - $branchName) - { - $branchNames[] = $branchName; - } - $branchsPinYin = common::convert2Pinyin($branchNames); - ?> + - $module) - { - $moduleNames[] = $module; - } - $modulesPinYin = common::convert2Pinyin($moduleNames); - ?> +