Case Creation - Possible to unselect case classification leading to error on save
Bug Description
In the new case dialog window it is possible to click twice on a case classification button causing none to be selected. Afterwards clicking save produces an error.
Reproduction Steps
- Use the "NEW CASE" button
- Complete the form.
- Click twice on "NOT YET CLASSIFIED" (the option should become un-selected)
- Click "SAVE"
- Error screen is shown with "Unexpected Errror"
Expected Behavior
- On save the "NOT YET CLASSIFIED" should be automatically selected if no other case classifications are on.
- Do not allow case classification widget to have no option selected.
Affected Area(s)
Web app
SORMAS Version
1.102
Android version/Browser
any
User Role(s)
National User
Server URL
qa.sormas.dev
Additional Information
No response
@raulbob which disease was this for? we cannot replicate, we didnt get an error
Normally on any disease, just make sure you complete the form and before saving click the enabled classification again and it will become unselected.
Fill in the form and uncheck the classification :
Save and you get an error:
@SORMAS-JanBoehme are you able to replicate? i am not
@raulbob I can not replicate it completely.
I can get the form to not have any case classification selected but it saves just fine and the case that is created is then set to "Not yet classified".
What does the log say when you get the error?
Tried again to replicate without success. New case saved just fine, even with nothing selected for "Case Classification". The resulting case was set to "Not yet clasisfied" correctly.
Closing this issue.