fix(项目设置): 缺陷模板覆盖复制时不同类型字段处理问题
--bug=1018484 --user=宋昌昌 【项目设置】缺陷模版自定义字段类型同名不同类型,复制模版后目标项目字段未同步覆盖字段类型 https://www.tapd.cn/55049933/s/1274361
This commit is contained in:
parent
8ca86c2398
commit
049db86e04
|
@ -391,11 +391,10 @@ public class IssueTemplateService extends TemplateBaseService {
|
||||||
tarCustomField.setCreateUser(SessionUtils.getUserId());
|
tarCustomField.setCreateUser(SessionUtils.getUserId());
|
||||||
if (StringUtils.equals("1", request.getCopyModel())) {
|
if (StringUtils.equals("1", request.getCopyModel())) {
|
||||||
// 覆盖模式
|
// 覆盖模式
|
||||||
if (StringUtils.equals(sourceCustomField.getType(), tarCustomField.getType())) {
|
if (!StringUtils.equals(sourceCustomField.getType(), tarCustomField.getType())) {
|
||||||
tarCustomField.setOptions(sourceCustomField.getOptions());
|
tarCustomField.setType(sourceCustomField.getType());
|
||||||
} else {
|
|
||||||
tarCustomField.setOptions("[]");
|
|
||||||
}
|
}
|
||||||
|
tarCustomField.setOptions(sourceCustomField.getOptions());
|
||||||
customFieldMapper.updateByPrimaryKeyWithBLOBs(tarCustomField);
|
customFieldMapper.updateByPrimaryKeyWithBLOBs(tarCustomField);
|
||||||
} else {
|
} else {
|
||||||
//追加模式
|
//追加模式
|
||||||
|
|
Loading…
Reference in New Issue