dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #23254
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 11298: Lock exception, removed last 24 period constraint
------------------------------------------------------------
revno: 11298
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2013-07-01 16:57:59 +0200
message:
Lock exception, removed last 24 period constraint
modified:
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/java/org/hisp/dhis/dataadmin/action/lockexception/GetPeriodsAction.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-maintenance/dhis-web-maintenance-dataadmin/src/main/java/org/hisp/dhis/dataadmin/action/lockexception/GetPeriodsAction.java'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/java/org/hisp/dhis/dataadmin/action/lockexception/GetPeriodsAction.java 2013-03-12 15:30:41 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/java/org/hisp/dhis/dataadmin/action/lockexception/GetPeriodsAction.java 2013-07-01 14:57:59 +0000
@@ -49,8 +49,6 @@
public class GetPeriodsAction
implements Action
{
- private static final int MAX_PERIODS = 24;
-
// -------------------------------------------------------------------------
// Dependencies
// -------------------------------------------------------------------------
@@ -119,11 +117,6 @@
FilterUtils.filter( periods, new PastAndCurrentPeriodFilter() );
Collections.reverse( periods );
- if ( periods.size() > MAX_PERIODS )
- {
- periods = periods.subList( 0, MAX_PERIODS );
- }
-
return periods;
}
}