dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #34053
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 17468: Fix bug #1392277
------------------------------------------------------------
revno: 17468
committer: Halvdan Hoem Grelland <halvdanhg@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2014-11-14 12:42:30 +0100
message:
Fix bug #1392277
modified:
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/java/org/hisp/dhis/dd/action/categoryoptiongroup/ShowUpdateCategoryOptionGroupAction.java
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/java/org/hisp/dhis/dd/action/categoryoptiongroupset/ShowUpdateCategoryOptionGroupSetAction.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-datadictionary/src/main/java/org/hisp/dhis/dd/action/categoryoptiongroup/ShowUpdateCategoryOptionGroupAction.java'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/java/org/hisp/dhis/dd/action/categoryoptiongroup/ShowUpdateCategoryOptionGroupAction.java 2014-09-26 06:23:19 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/java/org/hisp/dhis/dd/action/categoryoptiongroup/ShowUpdateCategoryOptionGroupAction.java 2014-11-14 11:42:30 +0000
@@ -35,6 +35,7 @@
import org.springframework.beans.factory.annotation.Autowired;
import java.util.ArrayList;
+import java.util.Collections;
import java.util.List;
/**
@@ -87,6 +88,8 @@
categoryOptions = new ArrayList<>( categoryOptionGroup.getMembers() );
+ Collections.sort( categoryOptions );
+
return SUCCESS;
}
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/java/org/hisp/dhis/dd/action/categoryoptiongroupset/ShowUpdateCategoryOptionGroupSetAction.java'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/java/org/hisp/dhis/dd/action/categoryoptiongroupset/ShowUpdateCategoryOptionGroupSetAction.java 2014-09-26 06:23:19 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/java/org/hisp/dhis/dd/action/categoryoptiongroupset/ShowUpdateCategoryOptionGroupSetAction.java 2014-11-14 11:42:30 +0000
@@ -35,6 +35,7 @@
import org.springframework.beans.factory.annotation.Autowired;
import java.util.ArrayList;
+import java.util.Collections;
import java.util.List;
/**
@@ -87,6 +88,8 @@
categoryOptionGroups = new ArrayList<>( categoryOptionGroupSet.getMembers() );
+ Collections.sort( categoryOptionGroups );
+
return SUCCESS;
}
}