Details
-
Bug
-
Status: Closed
-
TBD
-
Resolution: Fixed
-
OpenMRS 1.9.0
-
None
-
None
-
Low
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.