Skip to content

Commit

Permalink
Customizable enums creation form - save returns an error #13221 (#13222)
Browse files Browse the repository at this point in the history
Co-authored-by: Marin <[email protected]>
  • Loading branch information
cazacmarin and Marin authored Jan 15, 2025
1 parent 6886750 commit 71c14e5
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 71c14e5

Please sign in to comment.