=== modified file 'dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/util/ConversionUtils.java' --- dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/util/ConversionUtils.java 2010-01-29 09:05:27 +0000 +++ dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/util/ConversionUtils.java 2010-02-18 15:41:11 +0000 @@ -71,6 +71,7 @@ throw new RuntimeException( "Failed to convert objects", ex ); } } + /** * Returns the identifier of the argument object. The object is assumed to * have a int getId() method. === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/resources/org/hisp/dhis/dataadmin/i18n_module.properties' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/resources/org/hisp/dhis/dataadmin/i18n_module.properties 2010-02-01 20:21:20 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/resources/org/hisp/dhis/dataadmin/i18n_module.properties 2010-02-18 15:41:11 +0000 @@ -29,7 +29,7 @@ clear_dataset_completeness = Clear dataset completeness clear_hierarchy_history = Clear hierarchy history clear_zero_values = Clear zero values -group_set_structure = Exclusive organisation unit groupset structure +group_set_structure = Organisation unit groupset structure normalized organisation_unit_structure = Organisation unit structure data_element_category_option_combo_name = Data element category option combo name generate_resource_tables = Generate tables === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/multidimensional/addDataElementCategoryComboForm.vm' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/multidimensional/addDataElementCategoryComboForm.vm 2010-02-09 09:10:29 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/multidimensional/addDataElementCategoryComboForm.vm 2010-02-18 15:41:11 +0000 @@ -59,7 +59,7 @@
-

+



=== modified file 'dhis-2/dhis-web/dhis-web-reporting/src/main/java/org/hisp/dhis/reporting/chart/action/GetChartOptionsAction.java' --- dhis-2/dhis-web/dhis-web-reporting/src/main/java/org/hisp/dhis/reporting/chart/action/GetChartOptionsAction.java 2009-08-20 08:17:49 +0000 +++ dhis-2/dhis-web/dhis-web-reporting/src/main/java/org/hisp/dhis/reporting/chart/action/GetChartOptionsAction.java 2010-02-18 15:41:11 +0000 @@ -244,10 +244,6 @@ selectedOrganisationUnits = chart.getOrganisationUnits(); availableOrganisationUnits.removeAll( selectedOrganisationUnits ); - Collections.sort( selectedIndicators, indicatorComparator ); - Collections.sort( selectedPeriods, new PeriodComparator() ); - Collections.sort( selectedOrganisationUnits, organisationUnitComparator ); - displayPropertyHandler.handle( selectedIndicators ); displayPropertyHandler.handle( selectedOrganisationUnits ); } === modified file 'dhis-2/dhis-web/dhis-web-reporting/src/main/java/org/hisp/dhis/reporting/chart/action/SaveChartAction.java' --- dhis-2/dhis-web/dhis-web-reporting/src/main/java/org/hisp/dhis/reporting/chart/action/SaveChartAction.java 2009-11-23 11:51:03 +0000 +++ dhis-2/dhis-web/dhis-web-reporting/src/main/java/org/hisp/dhis/reporting/chart/action/SaveChartAction.java 2010-02-18 15:41:11 +0000 @@ -42,8 +42,6 @@ import org.hisp.dhis.period.PeriodService; import org.hisp.dhis.reporttable.RelativePeriods; -import static org.hisp.dhis.system.util.ConversionUtils.*; - import com.opensymphony.xwork2.Action; /** @@ -272,10 +270,25 @@ { Chart chart = new Chart(); - List indicators = getList( indicatorService.getIndicators( getIntegerCollection( selectedIndicators ) ) ); - List periods = getList( periodService.getPeriods( getIntegerCollection( selectedPeriods ) ) ); - List organisationUnits = getList( organisationUnitService.getOrganisationUnits( getIntegerCollection( selectedOrganisationUnits ) ) ); - + List indicators = new ArrayList(); + List periods = new ArrayList(); + List organisationUnits = new ArrayList(); + + for ( Integer id : getIntegerCollection( selectedIndicators ) ) + { + indicators.add( indicatorService.getIndicator( id ) ); + } + + for ( Integer id : getIntegerCollection( selectedPeriods ) ) + { + periods.add( periodService.getPeriod( id ) ); + } + + for ( Integer id : getIntegerCollection( selectedOrganisationUnits ) ) + { + organisationUnits.add( organisationUnitService.getOrganisationUnit( id ) ); + } + chart.setId( id != null ? id : 0 ); chart.setTitle( title ); chart.setType( type ); @@ -289,6 +302,8 @@ chart.setPeriods( periods ); chart.setOrganisationUnits( organisationUnits ); + //TODO currently not in use + RelativePeriods relatives = new RelativePeriods(); relatives.setReportingMonth( reportingMonth ); === modified file 'dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/addChartForm.vm' --- dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/addChartForm.vm 2009-03-03 16:46:36 +0000 +++ dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/addChartForm.vm 2010-02-18 15:41:11 +0000 @@ -65,14 +65,16 @@ - + + + + - - + - + - - - + + - + @@ -123,13 +130,13 @@ #end - + - === modified file 'dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/addChartOrganisationUnitModeForm.vm' --- dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/addChartOrganisationUnitModeForm.vm 2009-03-03 16:46:36 +0000 +++ dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/addChartOrganisationUnitModeForm.vm 2010-02-18 15:41:11 +0000 @@ -2,10 +2,10 @@ - + - - - - + + - + - + - - - + - - - - + + - + - + - -
$i18n.getString( "value_y_available_indicators" )$i18n.getString( "value_y_available_indicators" )
+
+
+
$i18n.getString( "value_y_selected_indicators" )$i18n.getString( "value_y_selected_indicators" )
@@ -107,11 +110,15 @@ #foreach( $indicator in $selectedIndicators ) #end - + + +

+
+
$i18n.getString( "category_x_available_organisationunits" )$i18n.getString( "category_x_available_organisationunits" )
+
+
+
$i18n.getString( "category_x_selected_organisationunits" )$i18n.getString( "category_x_selected_organisationunits" )
@@ -43,18 +43,22 @@ #end +

+ +
$i18n.getString( "filter_available_periods" )$i18n.getString( "filter_available_periods" )
+
+
$i18n.getString( "category_x_available_periods" )$i18n.getString( "category_x_available_periods" )
+
+
+
$i18n.getString( "category_x_selected_periods" )$i18n.getString( "category_x_selected_periods" )
@@ -42,18 +42,22 @@ #end +

+ +
$i18n.getString( "filter_available_organisationunits" )$i18n.getString( "filter_available_organisationunits" )
+
+