Skip to content

Commit

Permalink
Legg til støtte for lagring av "fargekategorier"-filter
Browse files Browse the repository at this point in the history
  • Loading branch information
slovrid committed Mar 14, 2024
1 parent e526715 commit 556bdae
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ public class PortefoljeFilter {
@JsonSetter(nulls = Nulls.AS_EMPTY)
private List<String> barnUnder18AarAlder = emptyList();

@JsonSetter(nulls = Nulls.AS_EMPTY)
private List<String> fargekategorier = emptyList();

@JsonIgnore
public Boolean isNotEmpty() {
return (kjonn != null && !kjonn.isEmpty()) ||
Expand Down Expand Up @@ -154,6 +157,7 @@ public Boolean isNotEmpty() {
(avvik14aVedtak != null && !avvik14aVedtak.isEmpty()) ||
(ensligeForsorgere != null && !ensligeForsorgere.isEmpty()) ||
(barnUnder18Aar != null && !barnUnder18Aar.isEmpty() ||
(barnUnder18AarAlder != null && !barnUnder18AarAlder.isEmpty()));
(barnUnder18AarAlder != null && !barnUnder18AarAlder.isEmpty() ||
(fargekategorier != null && !fargekategorier.isEmpty())));
}
}

0 comments on commit 556bdae

Please sign in to comment.