diff --git a/backend/src/main/java/io/metersphere/track/service/TestCaseReviewService.java b/backend/src/main/java/io/metersphere/track/service/TestCaseReviewService.java index 963d2577d5..3bffd865eb 100644 --- a/backend/src/main/java/io/metersphere/track/service/TestCaseReviewService.java +++ b/backend/src/main/java/io/metersphere/track/service/TestCaseReviewService.java @@ -231,7 +231,8 @@ public class TestCaseReviewService { TestCaseReviewExample example = new TestCaseReviewExample(); TestCaseReviewExample.Criteria criteria = example .createCriteria() - .andNameEqualTo(testCaseReview.getName()); + .andNameEqualTo(testCaseReview.getName()) + .andProjectIdEqualTo(testCaseReview.getProjectId()); if (StringUtils.isNotBlank(testCaseReview.getId())) { criteria.andIdNotEqualTo(testCaseReview.getId()); diff --git a/frontend/src/business/components/api/definition/components/list/ApiCaseSimpleList.vue b/frontend/src/business/components/api/definition/components/list/ApiCaseSimpleList.vue index 9554637247..fed6ae513b 100644 --- a/frontend/src/business/components/api/definition/components/list/ApiCaseSimpleList.vue +++ b/frontend/src/business/components/api/definition/components/list/ApiCaseSimpleList.vue @@ -68,6 +68,7 @@ :field="item" :fields-width="fieldsWidth" prop="name" + sortable min-width="160px" :label="$t('test_track.case.name')"/>