Skip to content

Commit

Permalink
fix(测试跟踪): 功能用例导出多值输入自定义字段为空
Browse files Browse the repository at this point in the history
--bug=1020958 --user=陈建星 【测试跟踪】github#20627,自定义设置功能用例模板字段为“多值输入框” ,然后通过excel导入,页面展示有问题 https://www.tapd.cn/55049933/s/1319859
  • Loading branch information
AgAngle committed Dec 27, 2022
1 parent ba2fb48 commit ae1ac5a
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -1739,7 +1739,9 @@ private void buildExportCustomField(Map<String, Map<String, String>> customSelec
List<String> results = new ArrayList<>();
List values = (List) value;
values.forEach(item -> {
if (MapUtils.isNotEmpty(optionMap) && optionMap.containsKey(item.toString())) {
if (MapUtils.isEmpty(optionMap)) {
results.add(item.toString());
} else if (optionMap.containsKey(item.toString())) {
results.add(optionMap.get(item.toString()));
}
});
Expand Down

0 comments on commit ae1ac5a

Please sign in to comment.