* [bug#64776,done,1h] Set pinyin keys for searching.

This commit is contained in:
daitingting
2025-08-21 08:38:55 +08:00
committed by tianshujie
parent 8906e35374
commit 4eef42838d
+2 -1
View File
@@ -71,12 +71,13 @@ $config->bug->dtable->fieldList['product']['link'] = 'RAWJS<function(info){ if(i
foreach($bugs as $bug) $bug->canBeChanged = 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