← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 10729: Minor fix.

 

------------------------------------------------------------
revno: 10729
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2013-05-02 10:51:12 +0700
message:
  Minor fix.
modified:
  dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/caseaggregation/jdbc/JdbcCaseAggregationConditionManager.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-services/dhis-service-patient/src/main/java/org/hisp/dhis/caseaggregation/jdbc/JdbcCaseAggregationConditionManager.java'
--- dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/caseaggregation/jdbc/JdbcCaseAggregationConditionManager.java	2013-05-02 03:31:45 +0000
+++ dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/caseaggregation/jdbc/JdbcCaseAggregationConditionManager.java	2013-05-02 03:51:12 +0000
@@ -389,8 +389,11 @@
                 // Aggregation
                 // ---------------------------------------------------------------------
 
-                insertAggregateValue( caseExpression, caseOperator, dataelementId, optionComboId, deSumId, orgunitIds,
-                    period );
+                if ( _orgunitIds.size() > 0 )
+                {
+                    insertAggregateValue( caseExpression, caseOperator, dataelementId, optionComboId, deSumId,
+                        orgunitIds, period );
+                }
             }
 
         }