dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #00049
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 4: Onchange period type removed from dataset frequency list till it becomes fully implemented.
------------------------------------------------------------
revno: 4
committer: abyot <abyota@xxxxxxxxx>
branch nick: trunk
timestamp: Sun 2009-03-08 16:57:10 +0530
message:
Onchange period type removed from dataset frequency list till it becomes fully implemented.
modified:
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/java/org/hisp/dhis/dataset/action/PeriodTypeListAction.java
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/java/org/hisp/dhis/dataset/action/PeriodTypeListAction.java'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/java/org/hisp/dhis/dataset/action/PeriodTypeListAction.java 2009-03-03 16:46:36 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/java/org/hisp/dhis/dataset/action/PeriodTypeListAction.java 2009-03-08 11:27:10 +0000
@@ -28,7 +28,9 @@
*/
import java.util.Collection;
+import java.util.Iterator;
+import org.hisp.dhis.period.OnChangePeriodType;
import org.hisp.dhis.period.PeriodService;
import org.hisp.dhis.period.PeriodType;
@@ -76,7 +78,18 @@
throws Exception
{
periodTypes = periodService.getAllPeriodTypes();
-
+
+ Iterator<PeriodType> iterator = periodTypes.iterator();
+
+ while( iterator.hasNext() )
+ {
+ if( iterator.next().getName().equalsIgnoreCase( OnChangePeriodType.NAME ) )
+ {
+ iterator.remove();
+ }
+ }
+
return SUCCESS;
}
}
+
--
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.