=== modified file 'dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/DataValueController.java' --- dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/DataValueController.java 2014-05-22 12:40:24 +0000 +++ dhis-2/dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/DataValueController.java 2014-06-27 16:10:53 +0000 @@ -199,17 +199,7 @@ if ( dataValue == null ) { dataValue = new DataValue( dataElement, period, organisationUnit, categoryOptionCombo, attributeOptionCombo, - null, storedBy, now, null ); - - if ( value != null ) - { - dataValue.setValue( StringUtils.trimToNull( value ) ); - } - - if ( comment != null ) - { - dataValue.setComment( StringUtils.trimToNull( comment ) ); - } + StringUtils.trimToNull( value ), storedBy, now, StringUtils.trimToNull( comment ) ); dataValueService.addDataValue( dataValue ); }