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

When voiding a patient via the standard Patient Form, validation does not enforce entering a "void reason"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Could
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: OpenMRS 1.7.2, OpenMRS 1.8.0
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Low

      Description

      If you void a Patient via the main patient form, the validator should enforce that you also provide a "void reason".

      This is not currently the case, so if you check the "void" box and don't enter a void reason, upon submittal you get an API exception:

      An Internal Error has Occurred
      org.openmrs.api.APIException

      The voided bit was set to true, so a void reason is required at save time for object: Patient#5 of class: class org.openmrs.Patient

        Attachments

        1. PatientValidatorFix.patch
          0.6 kB
        2. Trunk-1889.patch
          5 kB

          Activity

            People

            Assignee:
            ajanthan Balachandiran Ajanthan
            Reporter:
            mogoodrich Mark Goodrich
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: