← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 4959: Minor fixed some leftover hacks.

 

------------------------------------------------------------
revno: 4959
committer: Jason P. Pickering <jason.p.pickering@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2011-10-14 15:06:19 +0200
message:
  Minor fixed some leftover hacks.
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	2011-10-14 12:46:59 +0000
+++ dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/commons/action/GetOrganisationUnitTreeAction.java	2011-10-14 13:06:19 +0000
@@ -41,7 +41,7 @@
 import org.hisp.dhis.user.User;
 import org.hisp.dhis.version.Version;
 import org.hisp.dhis.version.VersionService;
-import org.hisp.dhis.organisationunit.comparator.OrganisationUnitNameComparator;
+
 import com.opensymphony.xwork2.Action;
 
 /**
@@ -155,8 +155,6 @@
         Collections.sort( rootOrganisationUnits, new OrganisationUnitNameComparator() );
         
         version = getVersionString();
-        //hack to sort orphaned children
-        Collections.sort( rootOrganisationUnits, new OrganisationUnitNameComparator() );
 
         return SUCCESS;
     }