Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-2847

Delete Forever error should have better language

    XMLWordPrintable

    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:

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              wyclif Wyclif Luyima
              Reporter:
              jriley Janet Riley
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: