File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
sormas-backend/src/main/java/de/symeda/sormas/backend/customizableenum Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,11 @@ protected CustomizableEnumValue fillOrBuildEntity(CustomizableEnumValueDto sourc
134
134
target .setValue (source .getValue ());
135
135
target .setCaption (source .getCaption ());
136
136
target .setTranslations (source .getTranslations ());
137
- target .setDiseases (source .getDiseases ());
137
+ if (!source .getDiseases ().isEmpty ()) {
138
+ target .setDiseases (source .getDiseases ());
139
+ } else {
140
+ target .setDiseases (null );
141
+ }
138
142
target .setDescription (source .getDescription ());
139
143
target .setDescriptionTranslations (source .getDescriptionTranslations ());
140
144
target .setProperties (source .getProperties ());
@@ -496,7 +500,9 @@ public CustomizableEnumValueDto toDto(CustomizableEnumValue source) {
496
500
target .setValue (source .getValue ());
497
501
target .setCaption (source .getCaption ());
498
502
target .setTranslations (source .getTranslations ());
499
- target .setDiseases (source .getDiseases ());
503
+ if (source .getDiseases () != null ) {
504
+ target .setDiseases (source .getDiseases ());
505
+ }
500
506
target .setDescription (source .getDescription ());
501
507
target .setDescriptionTranslations (source .getDescriptionTranslations ());
502
508
target .setProperties (source .getProperties ());
You can’t perform that action at this time.
0 commit comments