fix(项目设置): 跨项目复制缺陷模板名称赋值的问题

--bug=1015888 --user=宋昌昌 【项目设置】跨项目复制缺陷模版,模版名称同名 https://www.tapd.cn/55049933/s/1225580
This commit is contained in:
song-cc-rock 2022-08-17 17:40:43 +08:00 committed by 刘瑞斌
parent b28e9f2211
commit 237b45557d
1 changed files with 1 additions and 1 deletions

View File

@ -352,7 +352,7 @@ public class IssueTemplateService extends TemplateBaseService {
boolean isExistTargetIssueTemplate = targetIssueTemplates.stream().anyMatch(issueTemplate -> StringUtils.equals(sourceIssueTemplate.getName(), issueTemplate.getName()));
String recordName;
if (isExistTargetIssueTemplate) {
recordName = sourceIssueTemplate.getName().concat("_copy");
recordName = sourceIssueTemplate.getName().concat("_copy").concat(UUID.randomUUID().toString().substring(0, 8));
} else {
recordName = sourceIssueTemplate.getName();
}