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

Prevent voiding a Person linked to Provider(s) and/or User(s) metadata

    XMLWordPrintable

    Details

    • Complexity:
      Low

      Description

      Currently a user can void a person in the system who is still a provider or user. This causes NullPointerExceptions to client modules/code trying to display Person details (names) from the available providers.

      To see this in action set an existing person as a provider, void the person and then visit the provider homepage(/admin/provider/index.htm), you'll notice a javascript error.

      The suggested solution is:
      i. Prevent voiding of a person if the person is still linked to a user and/or provider.
      ii. Provide a descriptive message why the person cannot be voided by listing the user(s) and/or provider(s) preventing the action

        Gliffy Diagrams

          Attachments

          1. purge_person.png
            purge_person.png
            110 kB
          2. void_person.png
            void_person.png
            117 kB

            Activity

              People

              Assignee:
              pmuchowski Paweł Muchowski
              Reporter:
              gwasilwa Geoffrey Wasilwa
              Designated Committer:
              Wyclif Luyima
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 7 hours, 30 minutes
                  1d 7h 30m