Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register
Show
Ignore:
Timestamp:
07/25/08 00:22:18 (6 months ago)
Author:
bwolfe
Message:

Sideporting from trunk to 1.3.x branch
Added mysqldiff entries for privilege changes
Fixed relationship editor widget - #938

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • openmrs/branches/1.3.x/src/web/org/openmrs/web/dwr/RelationshipListItem.java

    r4095 r5034  
    4646                personAId = p.getPersonId(); 
    4747                try { 
    48                         Patient pat = Context.getPatientService().getPatient(p.getPersonId()); 
    49                         personAType = pat != null ? "Patient" : "User"; 
     48                        personAType = p.isPatient() ? "Patient" : "User"; 
    5049                } catch (Exception ex) { personAType = "User"; } 
    5150                 
     
    5453                personBId = p.getPersonId(); 
    5554                try { 
    56                         Patient pat = Context.getPatientService().getPatient(p.getPersonId()); 
    57                         personBType = pat != null ? "Patient" : "User"; 
     55                        personBType = p.isPatient() ? "Patient" : "User"; 
    5856                } catch (Exception ex) { personAType = "User"; } 
    5957        }