diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/service/FunctionalCaseService.java b/backend/services/case-management/src/main/java/io/metersphere/functional/service/FunctionalCaseService.java index 3d3e8f1da0..e55615af60 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/service/FunctionalCaseService.java +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/service/FunctionalCaseService.java @@ -470,16 +470,15 @@ public class FunctionalCaseService { customFields.forEach(item -> { if (StringUtils.equalsAnyIgnoreCase(item.getType(), CustomFieldType.MEMBER.name(), CustomFieldType.MULTIPLE_MEMBER.name())) { item.setOptions(memberCustomOption); - } else { - FunctionalCaseCustomField caseCustomField = functionalCaseCustomFieldService.getCustomField(item.getFieldId(), functionalCase.getId()); - Optional.ofNullable(caseCustomField).ifPresentOrElse(customField -> { - item.setDefaultValue(customField.getValue()); - if (Translator.get("custom_field.functional_priority").equals(item.getFieldName())) { - functionalCaseDetailDTO.setFunctionalPriority(customField.getValue()); - } - }, () -> { - }); - } + }; + FunctionalCaseCustomField caseCustomField = functionalCaseCustomFieldService.getCustomField(item.getFieldId(), functionalCase.getId()); + Optional.ofNullable(caseCustomField).ifPresentOrElse(customField -> { + item.setDefaultValue(customField.getValue()); + if (Translator.get("custom_field.functional_priority").equals(item.getFieldName())) { + functionalCaseDetailDTO.setFunctionalPriority(customField.getValue()); + } + }, () -> { + }); }); functionalCaseDetailDTO.setCustomFields(customFields); }