dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #24513
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 12029: Fixed bug - search person in all facilities don't work.
------------------------------------------------------------
revno: 12029
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2013-09-11 00:10:43 +0700
message:
Fixed bug - search person in all facilities don't work.
modified:
dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/patient/hibernate/HibernatePatientStore.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/patient/hibernate/HibernatePatientStore.java'
--- dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/patient/hibernate/HibernatePatientStore.java 2013-09-10 13:10:10 +0000
+++ dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/patient/hibernate/HibernatePatientStore.java 2013-09-10 17:10:43 +0000
@@ -513,7 +513,7 @@
else if ( keys[0].equals( Patient.PREFIX_IDENTIFIER_TYPE ) )
{
patientWhere += patientOperator + "( ( lower( " + statementBuilder.getPatientFullName() + " ) like '%"
- + id + "%' ) or lower(pi.identifier)='" + id + "' ";
+ + id + "%' ) or lower(pi.identifier) like '%" + id + "%' ";
String[] keyValues = id.split( " " );
if ( keyValues.length == 2 )
@@ -750,7 +750,7 @@
{
sql += statementBuilder.limitRecord( min, max );
}
-
+
return sql;
}