From 92bdc8f406bfda33496d492b06cae19a9267848f Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Tue, 26 Nov 2024 13:38:33 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=84=91=E5=9B=BE=E4=BF=9D=E5=AD=98=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1049514 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001049514 --- .../functional/service/FunctionalCaseMinderService.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/service/FunctionalCaseMinderService.java b/backend/services/case-management/src/main/java/io/metersphere/functional/service/FunctionalCaseMinderService.java index 775c04f8b4..230a021414 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/service/FunctionalCaseMinderService.java +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/service/FunctionalCaseMinderService.java @@ -578,7 +578,11 @@ public class FunctionalCaseMinderService { if (targetIndex > sources.size()) { beforeNode = sources; afterNode = new ArrayList<>(); - } else { + } else if (targetIndex == 0){ + beforeNode = new ArrayList<>(); + afterNode = sources; + } + else { beforeNode = sources.subList(0, targetIndex - 1); afterNode = sources.subList(targetIndex - 1, sources.size()); }