=== modified file 'dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/entry.js' --- dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/entry.js 2011-08-25 12:32:42 +0000 +++ dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/entry.js 2011-08-31 19:14:56 +0000 @@ -85,7 +85,12 @@ var periodId = $( '#selectedPeriodId' ).val(); - if ( value ) + if ( value == null ) + { + value = ''; + } + + if ( value != '' ) { if ( type == 'int' || type == 'number' || type == 'positiveNumber' || type == 'negativeNumber' ) { @@ -150,13 +155,13 @@ } } } - - var valueSaver = new ValueSaver( dataElementId, optionComboId, - currentOrganisationUnitId, periodId, value, COLOR_GREEN ); - valueSaver.save(); - - updateIndicators(); // Update indicators in case of custom form } + + var valueSaver = new ValueSaver( dataElementId, optionComboId, + currentOrganisationUnitId, periodId, value, COLOR_GREEN ); + valueSaver.save(); + + updateIndicators(); // Update indicators in case of custom form } function saveBoolean( dataElementId, optionComboId )