diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanFunctionalCaseService.java b/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanFunctionalCaseService.java index 68eb2f1bb9..34d7b34a04 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanFunctionalCaseService.java +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanFunctionalCaseService.java @@ -1015,7 +1015,7 @@ public class TestPlanFunctionalCaseService extends TestPlanResourceService { } private void buildAssociateBugData(String id, Map> bugMap, List list, TestPlanCaseBatchAssociateBugRequest request, Map caseMap, String userId) { - List bugIds = request.getBugIds(); + List bugIds = new ArrayList<>(request.getBugIds()); if (bugMap.containsKey(id)) { bugIds.removeAll(bugMap.get(id)); }