refactor(缺陷管理): 去掉自定义字段结尾的空格
--bug=1011993 --user=李玉号 [缺陷管理]github #12367 对接禅道企业版,缺陷模板中自定义字段的末尾如果有空隔,会导致此自定义字段无法传递给禅道 https://www.tapd.cn/55049933/s/1132501
This commit is contained in:
parent
7997f1dcf6
commit
a974dafb81
|
@ -399,8 +399,12 @@ public abstract class AbstractIssuePlatform implements IssuesPlatform {
|
||||||
List<CustomFieldItemDTO> customFields = CustomFieldService.getCustomFields(issuesRequest.getCustomFields());
|
List<CustomFieldItemDTO> customFields = CustomFieldService.getCustomFields(issuesRequest.getCustomFields());
|
||||||
customFields.forEach(item -> {
|
customFields.forEach(item -> {
|
||||||
if (StringUtils.isNotBlank(item.getCustomData())) {
|
if (StringUtils.isNotBlank(item.getCustomData())) {
|
||||||
|
if (item.getValue() instanceof String) {
|
||||||
|
paramMap.add(item.getCustomData(), ((String) item.getValue()).trim());
|
||||||
|
} else {
|
||||||
paramMap.add(item.getCustomData(), item.getValue());
|
paramMap.add(item.getCustomData(), item.getValue());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue