Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

Commit 1d3f0b4

Browse files
authored
* SORMAS-Foundation#3274 Fix yes/no saving issue * SORMAS-Foundation#3274 fix imports
1 parent 5d24bf4 commit 1d3f0b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sormas-ui/src/main/java/de/symeda/sormas/ui/campaign/campaigndata/CampaignFormBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ private float calculateComponentWidth(CampaignFormElementType type, List<Campaig
271271
private <T extends Field<?>> void setFieldValue(T field, CampaignFormElementType type, Object value) {
272272
switch (type) {
273273
case YES_NO:
274-
((NullableOptionGroup) field).setValue(value instanceof Boolean ? (Boolean) value : null);
274+
((NullableOptionGroup) field).setValue(value);
275275
break;
276276
case TEXT:
277277
case NUMBER:

0 commit comments

Comments
 (0)