diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/service/CaseReviewService.java b/backend/services/case-management/src/main/java/io/metersphere/functional/service/CaseReviewService.java index 8467a333f4..5a748d6352 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/service/CaseReviewService.java +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/service/CaseReviewService.java @@ -208,7 +208,7 @@ public class CaseReviewService { BaseAssociateCaseRequest baseAssociateCaseRequest = request.getBaseAssociateCaseRequest(); List caseIds = doSelectIds(baseAssociateCaseRequest, baseAssociateCaseRequest.getProjectId()); CaseReview caseReview = addCaseReview(request, userId, caseReviewId, caseIds); - addAssociate(request, userId, caseReviewId, caseIds, request.getReviewers()); + addAssociate(request, userId, caseReviewId, caseIds, baseAssociateCaseRequest.getReviewers()); return caseReview; } diff --git a/backend/services/case-management/src/test/java/io/metersphere/functional/controller/ReviewFunctionalCaseControllerTests.java b/backend/services/case-management/src/test/java/io/metersphere/functional/controller/ReviewFunctionalCaseControllerTests.java index 9f681d928a..97af6057f3 100644 --- a/backend/services/case-management/src/test/java/io/metersphere/functional/controller/ReviewFunctionalCaseControllerTests.java +++ b/backend/services/case-management/src/test/java/io/metersphere/functional/controller/ReviewFunctionalCaseControllerTests.java @@ -421,6 +421,7 @@ public class ReviewFunctionalCaseControllerTests extends BaseTest { baseAssociateCaseRequest.setSelectAll(false); baseAssociateCaseRequest.setProjectId(projectId); baseAssociateCaseRequest.setSelectIds(caseIds); + baseAssociateCaseRequest.setReviewers(reviewers); caseReviewRequest.setBaseAssociateCaseRequest(baseAssociateCaseRequest); List tags = new ArrayList<>(); tags.add("11");