Changeset 5033
- Timestamp:
- 07/24/08 22:13:41 (6 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
openmrs/trunk/src/web/org/openmrs/web/dwr/RelationshipListItem.java
r4095 r5033 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 } openmrs/trunk/web/WEB-INF/tags/personField.tag
r4864 r5033 57 57 58 58 <div class="personSearchLabel">${searchLabel}</div> 59 <div dojoType="PersonSearch" widgetId="${formFieldName}_search" personId="${initialValue}" roles="${roles}" ></div>59 <div dojoType="PersonSearch" widgetId="${formFieldName}_search" personId="${initialValue}" roles="${roles}" canAddNewPerson="${canAddNewPerson}"></div> 60 60 <c:if test="${not empty searchLabelCode}"> 61 <div dojoType="OpenmrsPopup" widgetId="${formFieldName}_selection" hiddenInputName="${formFieldName}" searchWidget="${formFieldName}_search" searchTitle="<spring:message code="${searchLabelCode}" arguments="${searchLabelArguments}" />" canAddNewPerson="${canAddNewPerson}"></div>61 <div dojoType="OpenmrsPopup" widgetId="${formFieldName}_selection" hiddenInputName="${formFieldName}" searchWidget="${formFieldName}_search" searchTitle="<spring:message code="${searchLabelCode}" arguments="${searchLabelArguments}" />" ></div> 62 62 </c:if> 63 63 <c:if test="${empty searchLabelCode}"> 64 <div dojoType="OpenmrsPopup" widgetId="${formFieldName}_selection" hiddenInputName="${formFieldName}" searchWidget="${formFieldName}_search" searchTitle="${searchLabel}" canAddNewPerson="${canAddNewPerson}"></div>64 <div dojoType="OpenmrsPopup" widgetId="${formFieldName}_selection" hiddenInputName="${formFieldName}" searchWidget="${formFieldName}_search" searchTitle="${searchLabel}" ></div> 65 65 </c:if>