fix(项目设置): 缺陷模板复制不勾选目标项目时提示优化 (#16923)

--bug=1015844 --user=宋昌昌 【项目设置】复制缺陷模版,不勾选目标项目,报错信息优化 https://www.tapd.cn/55049933/s/1224155

Co-authored-by: song-cc-rock <changchang.song@fit2cloud.com>
This commit is contained in:
MeterSphere Bot 2022-08-16 14:54:12 +08:00 committed by GitHub
parent d10a5c25c2
commit 5120c1ee98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 2 deletions

View File

@ -330,10 +330,10 @@ public class IssueTemplateService extends TemplateBaseService {
public List<IssueTemplate> copy(CopyIssueTemplateRequest request) {
if (CollectionUtils.isEmpty(request.getTargetProjectIds())) {
MSException.throwException("cannot copy, target project not checked");
MSException.throwException(Translator.get("target_issue_template_not_checked"));
}
if (request.getId() == null) {
MSException.throwException("copy error, source project is empty");
MSException.throwException(Translator.get("source_issue_template_is_empty"));
}
List<IssueTemplate> issueTemplateRecords = new ArrayList<>();
List<CustomField> customFieldRecords = new ArrayList<>();

View File

@ -38,6 +38,9 @@ please_logout_current_user=Please logout current user first
#attachment upload
test_case_attachment_upload_not_found=Unable to upload attachment, no associated test case found
issues_attachment_upload_not_found=Unable to upload attachment, no associated issue found
# issue template copy
target_issue_template_not_checked=Cannot copy, target project not checked
source_issue_template_is_empty=Copy error, source project is empty
#load test
edit_load_test_not_found=Cannot edit test, test not found=
run_load_test_not_found=Cannot run test, test not found=

View File

@ -38,6 +38,9 @@ please_logout_current_user=请先登出当前用户
#attachment upload
test_case_attachment_upload_not_found=无法上传附件,未找到相关联用例:
issues_attachment_upload_not_found=无法上传附件,未找到相关联缺陷:
# issue template copy
target_issue_template_not_checked=无法复制,未选中目标项目
source_issue_template_is_empty=复制错误,源项目为空
#load test
edit_load_test_not_found=无法编辑测试,未找到测试:
run_load_test_not_found=无法运行测试,未找到测试:

View File

@ -38,6 +38,9 @@ please_logout_current_user=請先登出當前用戶
#attachment upload
test_case_attachment_upload_not_found=無法上傳附件,未找到相關用例:
issues_attachment_upload_not_found=無法上傳附件,未找到相關缺陷:
# issue template copy
target_issue_template_not_checked=無法複製,未選中目標項目
source_issue_template_is_empty=複製錯誤,源項目為空
#load test
edit_load_test_not_found=無法編輯測試,未找到測試:
run_load_test_not_found=無法運行測試,未找到測試: