From cc5ae0c8affc0fd53d69bacc696286d296c41ab7 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Fri, 11 Aug 2023 09:00:08 +0800 Subject: [PATCH] * Uniformly converts execution names to pinyin. --- module/execution/control.php | 1 + module/execution/view/ajaxgetdropmenu.html.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/module/execution/control.php b/module/execution/control.php index 9766aea966..fd7e5a7f09 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -3931,6 +3931,7 @@ class execution extends control $this->view->projects = $projectPairs; $this->view->projectExecutions = $projectExecutions; + $this->view->namePinyinList = common::convert2Pinyin($nameList); $this->display(); } diff --git a/module/execution/view/ajaxgetdropmenu.html.php b/module/execution/view/ajaxgetdropmenu.html.php index b9743b319c..fc19e8d74b 100644 --- a/module/execution/view/ajaxgetdropmenu.html.php +++ b/module/execution/view/ajaxgetdropmenu.html.php @@ -26,7 +26,7 @@ foreach($projectExecutions as $projectID => $executions) { $group = $onlyClosed ? 'closed' : $getExecutionGroup($execution); - $item = array($execution->id, $execution->name, zget(common::convert2Pinyin(array($execution->name)), $execution->name, '')); + $item = array($execution->id, $execution->name, zget($namePinyinList, $execution->name, '')); if(!isset($data[$group][$projectID])) $data[$group][$projectID] = $projectItem; $data[$group][$projectID][4][] = $item;