fix(项目设置): 跨项目复制缺陷模板名称赋值的问题
--bug=1015888 --user=宋昌昌 【项目设置】跨项目复制缺陷模版,模版名称同名 https://www.tapd.cn/55049933/s/1225580
This commit is contained in:
parent
b28e9f2211
commit
237b45557d
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue