=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/java/org/hisp/dhis/trackedentity/action/trackedentityattribute/ShowAttributeInListNoProgramAction.java' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/java/org/hisp/dhis/trackedentity/action/trackedentityattribute/ShowAttributeInListNoProgramAction.java 2014-05-14 13:37:02 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/java/org/hisp/dhis/trackedentity/action/trackedentityattribute/ShowAttributeInListNoProgramAction.java 2014-06-02 01:32:37 +0000 @@ -32,7 +32,6 @@ import java.util.Collections; import java.util.List; -import org.hisp.dhis.common.comparator.IdentifiableObjectNameComparator; import org.hisp.dhis.trackedentity.TrackedEntityAttribute; import org.hisp.dhis.trackedentity.TrackedEntityAttributeService; import org.hisp.dhis.trackedentity.comparator.TrackedEntityAttributeSortOrderInListNoProgramComparator; @@ -63,13 +62,6 @@ // Output // ------------------------------------------------------------------------- - private List availableAttributes = new ArrayList(); - - public List getAvailableAttributes() - { - return availableAttributes; - } - private List selectedAttributes = new ArrayList(); public List getSelectedAttributes() @@ -86,13 +78,9 @@ { selectedAttributes = new ArrayList( attributeService.getTrackedEntityAttributesDisplayInList() ); + Collections.sort( selectedAttributes, new TrackedEntityAttributeSortOrderInListNoProgramComparator() ); - availableAttributes = new ArrayList( - attributeService.getAllTrackedEntityAttributes() ); - availableAttributes.removeAll( selectedAttributes ); - Collections.sort( availableAttributes, IdentifiableObjectNameComparator.INSTANCE ); - return SUCCESS; } } \ No newline at end of file === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/java/org/hisp/dhis/trackedentity/action/trackedentityattribute/ShowAttributeVisitScheduleFormAction.java' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/java/org/hisp/dhis/trackedentity/action/trackedentityattribute/ShowAttributeVisitScheduleFormAction.java 2014-04-04 17:43:59 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/java/org/hisp/dhis/trackedentity/action/trackedentityattribute/ShowAttributeVisitScheduleFormAction.java 2014-06-02 01:32:37 +0000 @@ -32,7 +32,6 @@ import java.util.Collections; import java.util.List; -import org.hisp.dhis.common.comparator.IdentifiableObjectNameComparator; import org.hisp.dhis.trackedentity.TrackedEntityAttribute; import org.hisp.dhis.trackedentity.TrackedEntityAttributeService; import org.hisp.dhis.trackedentity.comparator.TrackedEntityAttributeSortOrderComparator; @@ -62,13 +61,6 @@ // Output // ------------------------------------------------------------------------- - private List availableAttributes = new ArrayList(); - - public List getAvailableAttributes() - { - return availableAttributes; - } - private List selectedAttributes = new ArrayList(); public List getSelectedAttributes() @@ -83,12 +75,9 @@ public String execute() throws Exception { - availableAttributes = new ArrayList( - attributeService.getTrackedEntityAttributesByDisplayOnVisitSchedule( false ) ); - Collections.sort( availableAttributes, IdentifiableObjectNameComparator.INSTANCE ); - selectedAttributes = new ArrayList( attributeService.getTrackedEntityAttributesByDisplayOnVisitSchedule( true ) ); + Collections.sort( selectedAttributes, new TrackedEntityAttributeSortOrderComparator() ); return SUCCESS; === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/attributeVisitSchedule.vm' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/attributeVisitSchedule.vm 2014-06-02 01:08:01 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/attributeVisitSchedule.vm 2014-06-02 01:32:37 +0000 @@ -1,3 +1,20 @@ + +

$i18n.getString( "tracked_entity_attribute_visit_schedule_form" ) #openHelp('tracked_entity_attribute_configuration')

@@ -17,9 +34,6 @@ @@ -29,7 +43,7 @@ - #foreach($attribute in $selectedAttributes) #end