dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #31213
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 15891: Fixed bug in csv meta-import related to blank values
------------------------------------------------------------
revno: 15891
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2014-06-27 18:04:20 +0200
message:
Fixed bug in csv meta-import related to blank values
modified:
dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/utils/CsvObjectUtils.java
--
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/utils/CsvObjectUtils.java'
--- dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/utils/CsvObjectUtils.java 2014-06-26 09:29:30 +0000
+++ dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/utils/CsvObjectUtils.java 2014-06-27 16:04:20 +0000
@@ -318,7 +318,7 @@
string = values[index];
}
- string = StringUtils.trimToNull( string );
+ string = StringUtils.defaultIfBlank( string, defaultValue );
if ( string != null )
{