OpenMRS Core Master
Build: #2545 was successful
Job: Release to maven did not start
Code commits
openmrs-core
-
Michael Seaton <mseaton@pih.org> 4e583b698e6ed99200f3b8e82ff8557214c6d0a0
TRUNK-5977 - getPatientOrPromotePerson leading to stack traces under … (#3631)
TRUNK-5977 - getPatientOrPromotePerson leading to stack traces under some conditions. This changes the current approach by first loading the person with the given id, and then checking if the returned person is a patient or not.
Unfortunately, none of the unit tests catch the error that this is fixing, but running the refapp with this fix + a related fix to idgen fixes the error case as described on the ticket.- api/src/main/java/org/openmrs/api/impl/PatientServiceImpl.java (version 4e583b698e6ed99200f3b8e82ff8557214c6d0a0)