SORMAS-Project
                                
                                 SORMAS-Project copied to clipboard
                                
                                    SORMAS-Project copied to clipboard
                            
                            
                            
                        Date of Symptom Onset is not cleared if the case user has no symptoms
Bug Description
Create a case to any disease. Go to Symptoms tab. Set any symptom as YES. First Symptom and Date of Symptom Onset fields will be enable. Save the form.
Reset the symptom as NO or UNKNOWN
First symptom is cleared its value but not the date of symptom onset.
Save the symptoms details.
Now this date of symptom onset value is saving(which should not).
If the created case has samples, the same value (date of symptom onset) is displaying(which is obviously wrong)
Reproduction Steps
- Create a case with any disease(eg, AFP)
- Go to Symptoms tab and select any symptom as YES.
- First symptom and Date of Symptom Onset two fields will be enabled.
- Enter any Date of Symptom Onset date.
- Revert the symptom to NO or UNKNOWN
- Now first symptom drop down value is cleared but not the date of symptom onset.
- Save the symptoms form. This date is saving in the database.
- Create one new sample for that case(existing sample of the case as well)
- Open the sample
- Check the Date of Symptom Onset field in the Case card of the selected symptom.
- Saved value is showing(actually, the case has no symptom at all, because it was reverted). ...
Expected Behavior
No response
Affected Area(s)
Android app, Web app
SORMAS Version
1.120.0
Android version/Browser
chrome
User Role(s)
National User
Server URL
No response
Additional Information
No response