fix(消息通知): 缺陷通知自定义字段获取不到实际值
--bug=1047046 --user=宋昌昌 【消息通知】缺陷管理的消息通知中自定义字段获取不到实际值 https://www.tapd.cn/55049933/s/1597207
This commit is contained in:
parent
9821e2bd64
commit
1afb421f05
|
@ -14,4 +14,7 @@ public class BugCustomFieldDTO extends CustomField {
|
|||
|
||||
@Schema(description = "缺陷ID")
|
||||
private String bugId;
|
||||
|
||||
@Schema(description = "字段文本")
|
||||
private String text;
|
||||
}
|
||||
|
|
|
@ -66,7 +66,7 @@ public class BugNoticeService {
|
|||
// 其他自定义字段
|
||||
OptionDTO fieldDTO = new OptionDTO();
|
||||
fieldDTO.setId(field.getName());
|
||||
fieldDTO.setName(field.getValue());
|
||||
fieldDTO.setName(StringUtils.isEmpty(field.getText()) ? field.getValue() : field.getText());
|
||||
fields.add(fieldDTO);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue