dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #16844
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 6520: Fixed bug, section entry forms in light module not sorted properly
------------------------------------------------------------
revno: 6520
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Sat 2012-04-07 12:23:28 +0200
message:
Fixed bug, section entry forms in light module not sorted properly
modified:
dhis-2/dhis-web/dhis-web-light/src/main/java/org/hisp/dhis/light/dataentry/action/GetSectionFormAction.java
dhis-2/dhis-web/dhis-web-light/src/main/java/org/hisp/dhis/light/utils/FormUtils.java
dhis-2/dhis-web/dhis-web-light/src/main/webapp/dhis-web-light/dataEntrySection.vm
--
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-light/src/main/java/org/hisp/dhis/light/dataentry/action/GetSectionFormAction.java'
--- dhis-2/dhis-web/dhis-web-light/src/main/java/org/hisp/dhis/light/dataentry/action/GetSectionFormAction.java 2012-01-22 19:37:21 +0000
+++ dhis-2/dhis-web/dhis-web-light/src/main/java/org/hisp/dhis/light/dataentry/action/GetSectionFormAction.java 2012-04-07 10:23:28 +0000
@@ -240,7 +240,6 @@
name = "Default";
dataElements = new ArrayList<DataElement>( dataSet.getDataElements() );
Collections.sort( dataElements, new IdentifiableObjectNameComparator() );
-
}
validationViolations = formUtils.getValidationViolations( organisationUnit, dataElements, period );
=== modified file 'dhis-2/dhis-web/dhis-web-light/src/main/java/org/hisp/dhis/light/utils/FormUtils.java'
--- dhis-2/dhis-web/dhis-web-light/src/main/java/org/hisp/dhis/light/utils/FormUtils.java 2012-02-02 20:01:36 +0000
+++ dhis-2/dhis-web/dhis-web-light/src/main/java/org/hisp/dhis/light/utils/FormUtils.java 2012-04-07 10:23:28 +0000
@@ -398,12 +398,4 @@
return false;
}
-
- public static List<DataElementCategoryOptionCombo> sortedCategoryOptionCombos( Collection<DataElementCategoryOptionCombo> categoryOptionCombos )
- {
- List<DataElementCategoryOptionCombo> sortedCategoryOptionCombos = new ArrayList<DataElementCategoryOptionCombo>( categoryOptionCombos );
- Collections.sort( sortedCategoryOptionCombos, new IdentifiableObjectNameComparator() );
-
- return sortedCategoryOptionCombos;
- }
}
=== modified file 'dhis-2/dhis-web/dhis-web-light/src/main/webapp/dhis-web-light/dataEntrySection.vm'
--- dhis-2/dhis-web/dhis-web-light/src/main/webapp/dhis-web-light/dataEntrySection.vm 2012-01-23 13:45:36 +0000
+++ dhis-2/dhis-web/dhis-web-light/src/main/webapp/dhis-web-light/dataEntrySection.vm 2012-04-07 10:23:28 +0000
@@ -49,7 +49,7 @@
#set( $dataElementName = $dataElement.name )
#end
- #set( $optionCombos = $formUtils.sortedCategoryOptionCombos( $dataElement.categoryCombo.optionCombos ) )
+ #set( $optionCombos = $dataElement.categoryCombo.getSortedOptionCombos() )
#foreach( $optionCombo in $optionCombos )