SORMAS-Project
SORMAS-Project copied to clipboard
Deleting a pathogen test without edit right over the associated case does not update the case classification
Bug Description
When a user that does not have edit rights over a case deletes a pathogen test that was used to automatically classify the case, the case's classification is not updated back.
Reproduction Steps
- With a regular Admin+NatUser create a case and add to it a sample with positive pathogen test result (Covid-19);
- Once the pathogen test and the sample are saved, the case's classification is automatically updated to 'Confirmed case with unknown symptoms' or 'Confirmed case' (if the symptoms are also present);
- Log in with a user that has the following rights over cases and samples:
- Open the sample and delete the pathogen test; or delete the whole sample (if the right to 'Delete existing samples' is also given to the user).
Expected Behavior
Once the pathogen test is deleted, the Case classification should be automatically updated to the value that can be met by the current case classification criteria. (solution should be similar to #11980).
Affected Area(s)
Web app
SORMAS Version
1.84.0
Android version/Browser
Chrome
User Role(s)
Admin+NatUser; Configured user with the rights from the steps to reproduce
Server URL
local machine
Additional Information
No response