Skip to content

Commit

Permalink
FilerType should compare to code
Browse files Browse the repository at this point in the history
Just like everything else does. Must have gotten lost in the great name to code
change of 2021.
  • Loading branch information
BryceStevenWilley committed Sep 21, 2023
1 parent 63935c6 commit 00683b1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -661,11 +661,11 @@ private static JAXBElement<gov.niem.niem.domains.jxdm._4.CaseAugmentationType> m
filerTypeName,
"Metadata about the filer of this case",
"choices",
allTypes.stream().map(t -> t.name).collect(Collectors.toList()));
allTypes.stream().map(t -> t.code).collect(Collectors.toList()));
if (filerTypeNode != null && filerTypeNode.isTextual()) {
String filerType = filerTypeNode.asText();
Optional<FilerType> typeInfo =
allTypes.stream().filter(t -> t.name.equalsIgnoreCase(filerType)).findFirst();
allTypes.stream().filter(t -> t.code.equalsIgnoreCase(filerType)).findFirst();
if (typeInfo.isPresent()) {
ecfAug.setFilerTypeText(Ecf4Helper.convertText(typeInfo.get().code));
} else {
Expand Down

0 comments on commit 00683b1

Please sign in to comment.