Skip to content

Commit

Permalink
Customizable enums creation form - save returns an error #13221
Browse files Browse the repository at this point in the history
  • Loading branch information
Marin committed Dec 30, 2024
1 parent 6886750 commit fdbab18
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

package de.symeda.sormas.api.customizableenum;

import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
Expand Down Expand Up @@ -59,7 +60,7 @@ public class CustomizableEnumValueDto extends EntityDto {
private String caption;
@Valid
private List<CustomizableEnumTranslation> translations;
private Set<Disease> diseases;
private Set<Disease> diseases = new HashSet<>();
@Size(max = FieldConstraints.CHARACTER_LIMIT_TEXT, message = Validations.textTooLong)
private String description;
@Valid
Expand Down

0 comments on commit fdbab18

Please sign in to comment.