dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #25239
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 12465: fixed bug in patient search, facilityLB was sent even when only selected should be used. Trims an...
------------------------------------------------------------
revno: 12465
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2013-10-07 13:19:16 +0200
message:
fixed bug in patient search, facilityLB was sent even when only selected should be used. Trims and checks for empty in SearchPatientAction
modified:
dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/patient/SearchPatientAction.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-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 09:50:01 +0000
+++ 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
@@ -204,7 +204,7 @@
else if ( searchTexts.size() > 0 )
{
// selected orgunit
- if ( facilityLB == null )
+ if ( facilityLB == null || facilityLB.trim().isEmpty() )
{
orgunits.add( organisationUnit );
}