diff --git a/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java b/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java index 62c4893d18..af5eb321df 100644 --- a/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java +++ b/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java @@ -2257,6 +2257,9 @@ public class TestCaseService { if (testCaseWithBLOBs == null) { MSException.throwException(Translator.get("edit_load_test_not_found") + request.getId()); } + if (StringUtils.equals(testCaseWithBLOBs.getStatus(), CommonConstants.TrashStatus)) { + MSException.throwException(Translator.get("edit_trash_case_error")); + } request.setNum(testCaseWithBLOBs.getNum()); this.setNode(request); return editTestCase(request); diff --git a/test-track/backend/src/main/resources/i18n/messages_en_US.properties b/test-track/backend/src/main/resources/i18n/messages_en_US.properties index b4295b80eb..5de4f242e1 100644 --- a/test-track/backend/src/main/resources/i18n/messages_en_US.properties +++ b/test-track/backend/src/main/resources/i18n/messages_en_US.properties @@ -165,6 +165,7 @@ swagger_url_scheduled_import_notification=SwaggerUrl Scheduled import notificati Swagger_parse_error=Swagger parsing failed, please confirm file format is correct! Swagger_parse_error_with_auth=Swagger parsing failed. Please check whether authentication information is correct or file format is correct! test_track.length_less_than=The title is too long, the length must be less than +edit_trash_case_error=The case has been put in trash, please recover before edit! # check owner check_owner_project=The current user does not have permission to operate this project check_owner_test=The current user does not have permission to operate this test diff --git a/test-track/backend/src/main/resources/i18n/messages_zh_CN.properties b/test-track/backend/src/main/resources/i18n/messages_zh_CN.properties index 02a8b49448..f6d662c6e2 100644 --- a/test-track/backend/src/main/resources/i18n/messages_zh_CN.properties +++ b/test-track/backend/src/main/resources/i18n/messages_zh_CN.properties @@ -137,6 +137,7 @@ swagger_url_scheduled_import_notification=swagger_url定时导入通知 swagger_parse_error=Swagger 解析失败,请确认文件格式是否正确! swagger_parse_error_with_auth=Swagger 解析失败,请确认认证信息是否正确或文件格式是否正确! test_track.length_less_than=标题过长,字数必须小于 +edit_trash_case_error=用例已进入回收站, 请恢复后再编辑! # check owner check_owner_project=当前用户没有操作此项目的权限 check_owner_test=当前用户没有操作此测试的权限 diff --git a/test-track/backend/src/main/resources/i18n/messages_zh_TW.properties b/test-track/backend/src/main/resources/i18n/messages_zh_TW.properties index 1a56f04022..b0de3b60a0 100644 --- a/test-track/backend/src/main/resources/i18n/messages_zh_TW.properties +++ b/test-track/backend/src/main/resources/i18n/messages_zh_TW.properties @@ -137,6 +137,7 @@ swagger_url_scheduled_import_notification=swagger_url定時導入通知 swagger_parse_error=Swagger 解析失敗,請確認文件格式是否正確! swagger_parse_error_with_auth=Swagger 解析失敗,請確認認證信息是否正確或文件格式是否正確! test_track.length_less_than=標題過長,字數必須小於 +edit_trash_case_error=用例已進入回收站, 請恢復後再編輯! # check owner check_owner_project=當前用戶沒有操作此項目的權限 check_owner_test=當前用戶沒有操作此測試的權限