From b44f882a6bb160cda6539fe1b477c46e9b072b1b Mon Sep 17 00:00:00 2001 From: sunguangming Date: Sun, 29 Sep 2024 05:12:37 +0000 Subject: [PATCH] * [bug] fix batchAssign bug. --- module/bug/control.php | 1 + module/bug/ui/browse.html.php | 1 + 2 files changed, 2 insertions(+) diff --git a/module/bug/control.php b/module/bug/control.php index 37a4a29ac9..65dfd19f77 100755 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -1032,6 +1032,7 @@ class bug extends control */ public function batchAssignTo(string $assignedTo, int $objectID, string $type = 'execution') { + $assignedTo = base64_decode($assignedTo); if($this->post->bugIdList) { /* 获取指派给的 bug id 列表。 */ diff --git a/module/bug/ui/browse.html.php b/module/bug/ui/browse.html.php index e0604bb060..e38d01dacb 100644 --- a/module/bug/ui/browse.html.php +++ b/module/bug/ui/browse.html.php @@ -144,6 +144,7 @@ foreach($modules as $moduleID => $module) $assignedToItems = array(); foreach ($memberPairs as $key => $value) { + $key = base64_encode($key); // 编码用户名中的特殊字符 $assignedToItems[] = array('text' => $value, 'innerClass' => 'batch-btn ajax-btn not-open-url', 'data-url' => helper::createLink('bug', 'batchAssignTo', "assignedTo=$key&productID={$product->id}&type=product")); }