SORMAS-Foundation / SORMAS-Project

SORMAS (Surveillance, Outbreak Response Management and Analysis System) is an early warning and management system to fight the spread of infectious diseases.
https://sormas.org
GNU General Public License v3.0
293 stars 143 forks source link

[DEMIS2SORMAS] Editing vaccinations while processing physician reports leads to error when saving or discard entries #9858

Closed kwa20 closed 2 years ago

kwa20 commented 2 years ago

Bug Description

When vaccinations are edited in the physician processing window, editing causes errors when trying to navigate and saving changes in the unsaved changes prompt. Moreover, the same error appears when pressing "Save and open case". However, when pressing "Save" the case is saved but the edited vaccination discarded.

Steps to Reproduce

  1. Upload and fetch a physician report
  2. Process the physician report and create a case
  3. In the side by side view, open the immunizations tab
  4. Add a vaccination and press done
  5. Edit the same vaccination by opening it via the edit icon
  6. Make changes and press done
  7. Press the epi data tab > unsaved changes prompt triggers
  8. Press save > error appears
  9. Cancel the action
  10. Press "Save and open case" > error appears
  11. Press "Save"
  12. Open the saved case and check the vaccinations > The edited vaccination is missing

Expected Behavior

Editing the vaccinations in the processing window should work without error.

Screenshots

physReportVaccEdit physReportVaccEditSave

System Details

Additional Information

abrudanancuta commented 2 years ago

Validated together with @leventegal-she on his local environment