diff --git a/test-track/frontend/src/business/review/view/components/TestReviewTestCaseEdit.vue b/test-track/frontend/src/business/review/view/components/TestReviewTestCaseEdit.vue index 21ea490e13..57854664f7 100644 --- a/test-track/frontend/src/business/review/view/components/TestReviewTestCaseEdit.vue +++ b/test-track/frontend/src/business/review/view/components/TestReviewTestCaseEdit.vue @@ -343,6 +343,13 @@ export default { null, buildTestCaseOldFields(item) ); + this.testCaseTemplate.customFields.forEach((item) => { + try { + item.defaultValue = JSON.parse(item.defaultValue); + } catch (e) { + // nothing + } + }); this.isCustomFiledActive = true; this.testCase = item; if (!this.testCase.actualResult) { diff --git a/test-track/frontend/src/business/review/view/components/TestReviewTestCaseEditHeaderBar.vue b/test-track/frontend/src/business/review/view/components/TestReviewTestCaseEditHeaderBar.vue index 93a92dc507..630f9a6bbe 100644 --- a/test-track/frontend/src/business/review/view/components/TestReviewTestCaseEditHeaderBar.vue +++ b/test-track/frontend/src/business/review/view/components/TestReviewTestCaseEditHeaderBar.vue @@ -44,6 +44,7 @@ import ReviewStatus from "@/business/case/components/ReviewStatus"; import {getReviewerStatusComment} from "@/api/test-review-test-case"; import MsUserIcon from "metersphere-frontend/src/components/MsUserIcon"; import {openCaseEdit} from "@/business/case/test-case"; +import { checkProjectPermission } from "@/api/testCase"; export default { name: "TestReviewTestCaseEditHeaderBar", @@ -78,7 +79,13 @@ export default { } }, openTestCase() { - openCaseEdit({caseId: this.testCase.caseId}, this); + checkProjectPermission(this.testCase.projectId).then((r) => { + if (r.data) { + openCaseEdit({caseId: this.testCase.caseId}, this); + } else { + this.$error(this.$t("commons.project_permission")); + } + }); }, close() { this.$emit('close');