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

Incorrect behavior of Person.getPersonName() and getPersonAddress() for a voided Person

    XMLWordPrintable

    Details

    • Complexity:
      Low

      Description

      If a person is voided, then all of their names, addresses, etc are voided. Thus calling getPersonName() or getPersonAddress() on a voided person returns null.

      And as a result Provider.getName() returns null if the provider points to a voided person.

      I propose that we add a special-case to the getPersonName() and getPersonAddress() convenience methods so that if the person is voided, we don't exclude voided names/addresses as candidates for being returned.

      (This caused a bug in production in Mirebalais, since we were not expecting Provider.getName() to ever return null. We have added a workaround in our code, so this is not pressing.)

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              areo Arkadiusz KoƂodziejski
              Reporter:
              darius Darius Jazayeri
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 4 hours
                  4h
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours
                  4h