=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/patient/SearchPatientAction.java' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/patient/SearchPatientAction.java 2013-10-07 11:19:16 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/patient/SearchPatientAction.java 2013-10-11 03:57:57 +0000 @@ -204,7 +204,7 @@ else if ( searchTexts.size() > 0 ) { // selected orgunit - if ( facilityLB == null || facilityLB.trim().isEmpty() ) + if ( facilityLB == null || facilityLB.isEmpty() ) { orgunits.add( organisationUnit ); } @@ -230,7 +230,7 @@ patients = patientService.searchPatients( searchTexts, orgunits, null, null, statusEnrollment, paging.getStartPos(), paging.getPageSize() ); - if ( facilityLB != null ) + if ( facilityLB != null && !facilityLB.isEmpty()) { for ( Patient patient : patients ) { === modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/commons.js' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/commons.js 2013-10-10 05:29:57 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/commons.js 2013-10-11 03:57:57 +0000 @@ -225,6 +225,7 @@ if( getFieldValue('programIdAddPatient') != '' ) { params += "&programId=" + getFieldValue('programIdAddPatient'); params += "&searchTexts=prg_" + getFieldValue('programIdAddPatient'); + params += '&statusEnrollment=' + getFieldValue('statusEnrollment'); } var programStageId = jQuery('#programStageAddPatient').val(); @@ -286,7 +287,6 @@ }); params += '&listAll=false'; - params += '&statusEnrollment=' + getFieldValue('statusEnrollment'); params += '&facilityLB='; if( byId('searchInAllFacility').checked ) { @@ -2356,14 +2356,17 @@ function searchByIdsOnclick() { - var params = "searchText=" + getFieldValue("searchByIds"); + var params = "searchTexts=iden_" + getFieldValue("searchPatientByIds") + "_" + getFieldValue("orgunitId"); params += "&listAll=false"; + params += "&facilityLB="; - if( getFieldValue('programIdAddPatient')=="" ){ + if( getFieldValue('programIdAddPatient')!="" ){ params += "&programIds=" + getFieldValue('programIdAddPatient'); params += "&searchText=prg_" + getFieldValue('programIdAddPatient'); } + hideById( 'listPatientDiv'); + jQuery( "#loaderDiv" ).show(); $.ajax({ url: 'searchRegistrationPatient.action', type:"POST", === modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/patientRegistrationList.vm' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/patientRegistrationList.vm 2013-10-09 06:40:18 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/patientRegistrationList.vm 2013-10-11 03:57:57 +0000 @@ -71,6 +71,7 @@ #set($personDisplayName='true') #end #end + #if( $personDisplayName=='false' )