Skip to content

Commit 08f285c

Browse files
defect fixes
1 parent 0482e5d commit 08f285c

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

sormas-api/src/main/java/de/symeda/sormas/api/caze/CaseDataDto.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,8 @@ public class CaseDataDto extends SormasToSormasShareableDto implements IsCase {
643643
private String department;
644644

645645
private NotifierReferenceDto notifier;
646+
@Diseases(value = {
647+
Disease.TUBERCULOSIS })
646648
private RadiographyCompatibility radiographyCompatibility;
647649
private String otherDiagnosticCriteria;
648650

sormas-ui/src/main/java/de/symeda/sormas/ui/configuration/DevModeView.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -945,6 +945,11 @@ private void generateCases() {
945945
valid = false;
946946
}
947947

948+
if (config.getDisease() == null) {
949+
errorMessage.append("You must set a valid value for field 'Disease of the cases' in 'Generate Cases'").append("<br>");
950+
valid = false;
951+
}
952+
948953
if (valid) {
949954
generateCases(config);
950955
} else {

0 commit comments

Comments
 (0)