dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #37237
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 19058: Approval, centralized lowest level variable
------------------------------------------------------------
revno: 19058
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2015-04-29 14:23:06 +0200
message:
Approval, centralized lowest level variable
modified:
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataapproval/DefaultDataApprovalLevelService.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-core/src/main/java/org/hisp/dhis/dataapproval/DefaultDataApprovalLevelService.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataapproval/DefaultDataApprovalLevelService.java 2015-04-22 11:19:40 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataapproval/DefaultDataApprovalLevelService.java 2015-04-29 12:23:06 +0000
@@ -266,7 +266,7 @@
{
Set<Integer> userOrgUnitLevels = new HashSet<>();
- int lowestNumberOrgUnitLevel = 99999999;
+ int lowestNumberOrgUnitLevel = APPROVAL_LEVEL_UNAPPROVED;
for ( OrganisationUnit orgUnit : user.getOrganisationUnits() )
{