- Timestamp:
- 07/25/08 00:22:18 (6 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
openmrs/branches/1.3.x/src/web/org/openmrs/web/dwr/RelationshipListItem.java
r4095 r5034 46 46 personAId = p.getPersonId(); 47 47 try { 48 Patient pat = Context.getPatientService().getPatient(p.getPersonId()); 49 personAType = pat != null ? "Patient" : "User"; 48 personAType = p.isPatient() ? "Patient" : "User"; 50 49 } catch (Exception ex) { personAType = "User"; } 51 50 … … 54 53 personBId = p.getPersonId(); 55 54 try { 56 Patient pat = Context.getPatientService().getPatient(p.getPersonId()); 57 personBType = pat != null ? "Patient" : "User"; 55 personBType = p.isPatient() ? "Patient" : "User"; 58 56 } catch (Exception ex) { personAType = "User"; } 59 57 }