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

PatientSetService getCurrentStates method errors if passed an empty cohort

    XMLWordPrintable

Details

    Description

      The getCurrentStates method in the HibernatePatientSetDAO class throws sql exceptions if the following restriction is added

      criteria.createCriteria("patientProgram").add(Restrictions.in("patient.personId", ps.getMemberIds())); (Line 1782)

      when passed an empty cohort.

      If an empty cohort is passed this method should return an empty map.

      Gliffy Diagrams

        Attachments

          1. HibernatePatientSetDAOPatch.txt
            4 kB
            Lara Kellett
          2. TRUNK-3668.patch
            4 kB
            Mykola Vorobey

          Activity

            People

              lara.kellett Lara Kellett
              lara.kellett Lara Kellett
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: