SORMAS-Project
SORMAS-Project copied to clipboard
[Contacts] The value from the 'Disease' field on contact pages is not displayed in edit mode for diseases that have been disabled
Bug Description
In the android-app, in edit mode on contact pages, the 'Disease' field is highlighted in red and the disease that had been previously set for the contact is not displayed, if the disease was disabled from the Data Base in the meantime.
Steps to Reproduce
- From the Data Base, in the 'diseaseconfiguration' table, for the disease 'Malaria' set the following, save the changes and restart the server afterwards:
- 'primarydisease' = true;
- 'casesurveillanceenabled' = true;
- 'aggregatereportingenabled' = true;
- In the vaadin-app, create a contact with 'Disease of source case' set to 'Malaria';
- Navigate to the DB and set to false all the values that were set to true at step 1;
- Save the changes and restart the server;
- Log into the android-app and do a synchronization with the server;
- Navigate to the 'Contacts' directory and open the contact created at step 2;
- Enter the edit mode and observe the 'Disease of source case' field.
Actual Behavior
The 'Disease of source case' field is cleared and highlighted in red.
Expected Behavior
The disease of the contact (Malaria) should be displayed in the 'Disease of source case' field.
Screenshots
Contact - android-app - read mode:
Contact - android-app - edit mode:
System Details
- Device: Windows 10 (vaadin-app); Android Studio Emulator - Pixel C (android-app)
- SORMAS version: 1.75.0-SNAPSHOT(b16a851)
- Android version/Browser: Chrome (vaadin-app); Android 11 (android-app)
- Server URL: local machine
- User Role: Admin+NatUser (vaadin-app); Surveillance Officer (android app)
Additional Information
The behavior applies to both contacts created in the vaadin-app and synchronized to the android-app, and to contacts created directly in the android-app.