=== modified file 'dhis-2/dhis-web/dhis-web-importexport/src/main/java/org/hisp/dhis/importexport/action/datavalue/ImportDataValueAction.java' --- dhis-2/dhis-web/dhis-web-importexport/src/main/java/org/hisp/dhis/importexport/action/datavalue/ImportDataValueAction.java 2015-12-03 07:12:19 +0000 +++ dhis-2/dhis-web/dhis-web-importexport/src/main/java/org/hisp/dhis/importexport/action/datavalue/ImportDataValueAction.java 2015-12-04 10:44:33 +0000 @@ -29,9 +29,10 @@ */ import com.opensymphony.xwork2.Action; + +import org.apache.commons.lang3.StringUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; -import org.hisp.dhis.common.IdentifiableProperty; import org.hisp.dhis.commons.util.StreamUtils; import org.hisp.dhis.dxf2.adx.AdxDataService; import org.hisp.dhis.dxf2.common.ImportOptions; @@ -97,23 +98,23 @@ this.strategy = ImportStrategy.valueOf( stgy ); } - private IdentifiableProperty idScheme; + private String idScheme; - public void setIdScheme( IdentifiableProperty idScheme ) + public void setIdScheme( String idScheme ) { this.idScheme = idScheme; } - private IdentifiableProperty dataElementIdScheme; + private String dataElementIdScheme; - public void setDataElementIdScheme( IdentifiableProperty dataElementIdScheme ) + public void setDataElementIdScheme( String dataElementIdScheme ) { this.dataElementIdScheme = dataElementIdScheme; } - private IdentifiableProperty orgUnitIdScheme; + private String orgUnitIdScheme; - public void setOrgUnitIdScheme( IdentifiableProperty orgUnitIdScheme ) + public void setOrgUnitIdScheme( String orgUnitIdScheme ) { this.orgUnitIdScheme = orgUnitIdScheme; } @@ -159,9 +160,9 @@ ImportOptions options = new ImportOptions().setDryRun( dryRun ) .setPreheatCache( preheatCache ).setStrategy( strategy ).setSkipExistingCheck( skipExistingCheck ) - .setIdScheme( idScheme.toString() ) - .setDataElementIdScheme( dataElementIdScheme.toString() ) - .setOrgUnitIdScheme( orgUnitIdScheme.toString() ); + .setIdScheme( StringUtils.trimToNull( idScheme ) ) + .setDataElementIdScheme( StringUtils.trimToNull( dataElementIdScheme ) ) + .setOrgUnitIdScheme( StringUtils.trimToNull( orgUnitIdScheme ) ); log.info( options ); === modified file 'dhis-2/dhis-web/dhis-web-importexport/src/main/webapp/dhis-web-importexport/importDataValue.vm' --- dhis-2/dhis-web/dhis-web-importexport/src/main/webapp/dhis-web-importexport/importDataValue.vm 2015-11-02 18:56:53 +0000 +++ dhis-2/dhis-web/dhis-web-importexport/src/main/webapp/dhis-web-importexport/importDataValue.vm 2015-12-04 10:44:33 +0000 @@ -44,7 +44,7 @@ $i18n.getString( "data_element_id_scheme" ) - + @@ -62,7 +62,7 @@ $i18n.getString( "id_scheme" ) ($i18n.getString( "all_objects" ))