From 4eef42838dd9545abe321aaf4e72d7fafdb31b69 Mon Sep 17 00:00:00 2001 From: daitingting Date: Tue, 19 Aug 2025 15:30:52 +0800 Subject: [PATCH] * [bug#64776,done,1h] Set pinyin keys for searching. --- module/my/ui/bug.html.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/my/ui/bug.html.php b/module/my/ui/bug.html.php index 7eb9f43daa..f05f25235c 100644 --- a/module/my/ui/bug.html.php +++ b/module/my/ui/bug.html.php @@ -71,12 +71,13 @@ $config->bug->dtable->fieldList['product']['link'] = 'RAWJScanBeChanged = common::canBeChanged('bug', $bug); +$pinyinItems = common::convert2Pinyin($memberPairs); $assignedToItems = array(); foreach ($memberPairs as $key => $value) { if(!$key) continue; $key = base64_encode((string)$key); // 编码用户名中的特殊字符 - $assignedToItems[] = array('text' => $value, 'innerClass' => 'batch-btn ajax-btn not-open-url', 'data-url' => createLink('bug', 'batchAssignTo', "assignedTo=$key&productID=0&type=my")); + $assignedToItems[] = array('text' => $value, 'keys' => zget($pinyinItems, $value, ''), 'innerClass' => 'batch-btn ajax-btn not-open-url', 'data-url' => createLink('bug', 'batchAssignTo', "assignedTo=$key&productID=0&type=my")); } $footToolbar = $canBatchAction ? array('items' => array