From 364e01a9ed20cb3119ad30bb3bfc446d0574ee8d Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Thu, 27 Apr 2023 18:59:11 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=9B=E5=BB=BA=E6=B5=8B=E8=AF=95=E7=94=A8?= =?UTF-8?q?=E4=BE=8B=E5=90=8E=E5=88=A0=E9=99=A4=E7=94=A8=E4=BE=8B=E4=BC=9A?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=88=97=E8=A1=A8=E4=B8=AD=E5=90=8C=E5=90=8D?= =?UTF-8?q?=E7=94=A8=E4=BE=8B=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1025830 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001025830 --- .../src/main/java/io/metersphere/service/TestCaseService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java b/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java index e387775c8e..8da2e9a3eb 100644 --- a/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java +++ b/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java @@ -228,7 +228,7 @@ public class TestCaseService { //新创建测试用例,默认使用最新版本 request.setRefId(request.getId()); request.setVersionId(baseProjectVersionMapper.getDefaultVersion(request.getProjectId())); - } else if (StringUtils.isBlank(request.getRefId()) && StringUtils.isNotBlank(request.getVersionId())) { + } else if (StringUtils.isNotBlank(request.getVersionId())) { //从版本选择直接创建 request.setRefId(request.getId()); }