← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 9300: An orgunit is displayed many times after to run formulas in Manual person aggregation function.

 

------------------------------------------------------------
revno: 9300
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2012-12-13 19:34:42 +0700
message:
  An orgunit is displayed many times after to run formulas in Manual person aggregation function.
modified:
  dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/caseaggregation/CaseAggregationResultAction.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/caseaggregation/CaseAggregationResultAction.java'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/caseaggregation/CaseAggregationResultAction.java	2012-12-13 03:16:57 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/java/org/hisp/dhis/caseentry/action/caseaggregation/CaseAggregationResultAction.java	2012-12-13 12:34:42 +0000
@@ -169,9 +169,9 @@
         return mapCaseAggCondition;
     }
 
-    private List<OrganisationUnit> orgunits = new ArrayList<OrganisationUnit>();
+    private Collection<OrganisationUnit> orgunits = new HashSet<OrganisationUnit>();
 
-    public List<OrganisationUnit> getOrgunits()
+    public Collection<OrganisationUnit> getOrgunits()
     {
         return orgunits;
     }