← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 8381: An exception thrown when to search persons by birthdate.

 

------------------------------------------------------------
revno: 8381
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2012-10-05 10:50:06 +0700
message:
  An exception thrown when to search persons by birthdate.
modified:
  dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/patient/hibernate/HibernatePatientStore.java
  dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/org/hisp/dhis/caseentry/i18n_module.properties


--
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	2012-10-04 15:05:38 +0000
+++ dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/patient/hibernate/HibernatePatientStore.java	2012-10-05 03:50:06 +0000
@@ -363,7 +363,7 @@
             String[] keys = searchKey.split( "_" );
             String id = keys[1];
             String value = "";
-            if ( keys.length == 3 )
+            if ( keys.length >= 3 )
             {
                 value = keys[2];
             }
@@ -549,7 +549,7 @@
         {
             sql += statementBuilder.limitRecord( min, max );
         }
-        
+ System.out.println("\n\n ==== \n " + sql );       
         return sql;
     }
 

=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/org/hisp/dhis/caseentry/i18n_module.properties'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/org/hisp/dhis/caseentry/i18n_module.properties	2012-10-05 03:29:50 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/org/hisp/dhis/caseentry/i18n_module.properties	2012-10-05 03:50:06 +0000
@@ -396,12 +396,6 @@
 message = Message
 sent_message_to = Sent message to
 send_message = Send message
-gateway_type = Gateway type
-bulk_gw=BulkSMS Gateway
-clickatell_gw=Clickatell Gateway
-generic_http_gw=Generic HTTP Gateway
-modem_gw=Modem Gateway
-messages = messages
 patient_dashboard = Person dashboard
 completed_programs = Completed programs
 active_programs = Active programs