fix(缺陷管理): 列表成员字段展示有误

--bug=1046489 --user=宋昌昌 【测试用例】新建缺陷-禅道默认/自定义模版-创建后缺陷列表部分字段未展示 https://www.tapd.cn/55049933/s/1579398
This commit is contained in:
song-cc-rock 2024-09-18 14:19:25 +08:00 committed by Craftsman
parent 7f79a361bc
commit c4ceb70ad5
1 changed files with 1 additions and 1 deletions

View File

@ -1840,7 +1840,7 @@ public class BugService {
// 本地模板自定义字段去重 // 本地模板自定义字段去重
List<TemplateCustomFieldDTO> headerCustomFields = allCustomFields.stream().filter(distinctByKey(TemplateCustomFieldDTO::getFieldId)).collect(Collectors.toList()); List<TemplateCustomFieldDTO> headerCustomFields = allCustomFields.stream().filter(distinctByKey(TemplateCustomFieldDTO::getFieldId)).collect(Collectors.toList());
// 填充自定义字段成员类型的选项值 // 填充自定义字段成员类型的选项值
List<SelectOption> memberOption = bugCommonService.getHeaderHandlerOption(projectId); List<SelectOption> memberOption = bugCommonService.getLocalHandlerOption(projectId);
List<CustomFieldOption> memberCustomOption = memberOption.stream().map(option -> { List<CustomFieldOption> memberCustomOption = memberOption.stream().map(option -> {
CustomFieldOption customFieldOption = new CustomFieldOption(); CustomFieldOption customFieldOption = new CustomFieldOption();
customFieldOption.setValue(option.getValue()); customFieldOption.setValue(option.getValue());