From 3fdeea98d38fc33b7eca5f495960f271c767e73b Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Thu, 8 Sep 2022 14:39:55 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E7=94=A8=E4=BE=8B=E5=AF=BC=E5=85=A5=E8=B4=A3?= =?UTF-8?q?=E4=BB=BB=E4=BA=BA=E6=9C=89=E5=A4=A7=E5=86=99=E5=AD=97=E7=AC=A6?= =?UTF-8?q?=E5=AF=BC=E5=85=A5=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1016463 --user=陈建星 【测试跟踪】github#17570,用例导出excel修改之后在导入会提示[责任人]必须当前项目成员,发现导入需要把责任人改成ID https://www.tapd.cn/55049933/s/1236015 --- .../track/validate/CustomFieldMemberValidator.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/src/main/java/io/metersphere/track/validate/CustomFieldMemberValidator.java b/backend/src/main/java/io/metersphere/track/validate/CustomFieldMemberValidator.java index ddaca94398..a07bf84806 100644 --- a/backend/src/main/java/io/metersphere/track/validate/CustomFieldMemberValidator.java +++ b/backend/src/main/java/io/metersphere/track/validate/CustomFieldMemberValidator.java @@ -32,6 +32,7 @@ public class CustomFieldMemberValidator extends AbstractCustomFieldValidator { if (StringUtils.isBlank(value)) { return; } + value = value.toLowerCase(); if (userIdMap.containsKey(value) || userNameMap.containsKey(value)) { return; } @@ -44,8 +45,8 @@ public class CustomFieldMemberValidator extends AbstractCustomFieldValidator { if (userIdMap.containsKey(keyOrValue)) { return userIdMap.get(keyOrValue); } - if (userNameMap.containsKey(keyOrValue.toLowerCase())) { - return userNameMap.get(keyOrValue.toLowerCase()); + if (userNameMap.containsKey(keyOrValue)) { + return userNameMap.get(keyOrValue); } return keyOrValue; }