Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Should
-
Resolution: Fixed
-
Affects Version/s: OpenMRS 1.9.0
-
Fix Version/s: 1.9 Beta Sprint
-
Component/s: None
-
Labels:
-
Complexity:Low
-
Development:
Description
Steps:
Create a visit and add an encounter.
Edit visit. Select DELETE FOREVER. This will fail because there's an encounter associated with the visit.
The log shows:
INFO - LoggingAdvice.invoke(117) |2011-11-09 09:26:17,724| In method VisitService.purgeVisit. Arguments: Visit=Visit #2,
ERROR - LoggingAdvice.invoke(126) |2011-11-09 09:26:17,739| An error occurred while executing this method. Error message: Cannot purge a visit that has encounters associated to it
INFO - LoggingAdvice.invoke(142) |2011-11-09 09:26:17,828| Exiting method purgeVisit
Result:
An error message that says "Error occurred while attempting to purge visit"
Should say:
"Error occurred while attempting to purge visit"
Request:
The error message should say "Error occurred while attempting to purge visit. Cannot purge a visit that has encounters associated to it."
Ideally, the DELETE FOREVER button would be disabled and a mouseover message appear explaining that it can't be purged while there are encounters.