dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #18332
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 7687: minor fix (made OUWT more robust when there are no OUs)
------------------------------------------------------------
revno: 7687
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2012-07-24 11:56:45 +0200
message:
minor fix (made OUWT more robust when there are no OUs)
modified:
dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/commons/action/GetOrganisationUnitTreeAction.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-commons/src/main/java/org/hisp/dhis/commons/action/GetOrganisationUnitTreeAction.java'
--- dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/commons/action/GetOrganisationUnitTreeAction.java 2012-06-29 15:11:05 +0000
+++ dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/commons/action/GetOrganisationUnitTreeAction.java 2012-07-24 09:56:45 +0000
@@ -166,7 +166,7 @@
}
}
- if ( !versionOnly )
+ if ( !versionOnly && !rootOrganisationUnits.isEmpty() )
{
for ( OrganisationUnit unit : userOrganisationUnits )
{