dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #40743
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 20713: CSV data element import, integer default type
------------------------------------------------------------
revno: 20713
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2015-10-15 12:08:08 +0200
message:
CSV data element import, integer default type
modified:
dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/csv/DefaultCsvImportService.java
dhis-2/dhis-web/dhis-web-commons/src/main/resources/dhis-web-commons.xml
--
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-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/csv/DefaultCsvImportService.java'
--- dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/csv/DefaultCsvImportService.java 2015-09-17 08:13:56 +0000
+++ dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/csv/DefaultCsvImportService.java 2015-10-15 10:08:08 +0000
@@ -197,7 +197,7 @@
String domainType = getSafe( values, 6, DataElementDomain.AGGREGATE.getValue(), 16 );
object.setDomainType( DataElementDomain.fromValue( domainType ) );
- object.setValueType( ValueType.valueOf( getSafe( values, 7, ValueType.TEXT.toString(), 50 ) ) );
+ object.setValueType( ValueType.valueOf( getSafe( values, 7, ValueType.INTEGER.toString(), 50 ) ) );
object.setAggregationType( AggregationType.valueOf( getSafe( values, 8, AggregationType.SUM.toString(), 50 ) ) );
String categoryComboUid = getSafe( values, 9, null, 11 );
=== modified file 'dhis-2/dhis-web/dhis-web-commons/src/main/resources/dhis-web-commons.xml'
--- dhis-2/dhis-web/dhis-web-commons/src/main/resources/dhis-web-commons.xml 2015-09-09 20:18:52 +0000
+++ dhis-2/dhis-web/dhis-web-commons/src/main/resources/dhis-web-commons.xml 2015-10-15 10:08:08 +0000
@@ -56,7 +56,7 @@
<interceptor-ref name="params" />
<interceptor-ref name="i18nInterceptor" />
<interceptor-ref name="systemSettingInterceptor" />
- <!-- The securityInterceptor is put after the i18nInterceptor so that the access denied error pages can use internationalisation. -->
+ <!-- The securityInterceptor is put after the i18nInterceptor so that the access denied error pages can use internationalization. -->
<interceptor-ref name="securityInterceptor" />
<interceptor-ref name="loginInterceptor" />
<interceptor-ref name="userSettingInterceptor" />