fix(测试跟踪): 进入回收站的用例编辑提示问题

--bug=1024821 --user=宋昌昌 【测试跟踪】功能用例-编辑用例新增tab页-用例列表删除该用例-编辑页面可保存成功-用例又恢复显示到用例列表 https://www.tapd.cn/55049933/s/1355791
This commit is contained in:
song-cc-rock 2023-03-27 10:48:54 +08:00 committed by fit2-zhao
parent 5e970d9570
commit d150ef0e90
4 changed files with 6 additions and 0 deletions

View File

@ -2276,6 +2276,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);

View File

@ -167,6 +167,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

View File

@ -139,6 +139,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=当前用户没有操作此测试的权限

View File

@ -139,6 +139,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=當前用戶沒有操作此測試的權限