From b787dc19c11009692f09f9b11100ecd6c72634d0 Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Wed, 24 Aug 2022 11:12:16 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E5=85=AC=E5=85=B1=E7=94=A8=E4=BE=8B=E5=BA=93=E5=92=8C=E7=94=A8?= =?UTF-8?q?=E4=BE=8B=E5=88=97=E8=A1=A8=E5=A4=8D=E5=88=B6=E6=98=AF=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=E7=94=9F=E6=88=90=E8=A7=84=E5=88=99=E4=B8=8D=E4=B8=80?= =?UTF-8?q?=E8=87=B4=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1016141 --user=宋昌昌 【测试跟踪】公共用例库用例批量复制到用例列表,复制名称需优化 https://www.tapd.cn/55049933/s/1232111 --- .../main/java/io/metersphere/track/service/TestCaseService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/java/io/metersphere/track/service/TestCaseService.java b/backend/src/main/java/io/metersphere/track/service/TestCaseService.java index adbe0ce916..a9ed2494db 100644 --- a/backend/src/main/java/io/metersphere/track/service/TestCaseService.java +++ b/backend/src/main/java/io/metersphere/track/service/TestCaseService.java @@ -1892,7 +1892,7 @@ public class TestCaseService { String oldTestCaseId = batchCopy.getId(); String id = UUID.randomUUID().toString(); batchCopy.setId(id); - batchCopy.setName(ServiceUtils.getCopyName(batchCopy.getName())); + batchCopy.setName("copy_" + batchCopy.getName()); if (batchCopy.getName().length() > 255) { batchCopy.setName(batchCopy.getName().substring(0, 250) + batchCopy.getName().substring(batchCopy.getName().length() - 5)); }