dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #28983
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 14568: CSV import, fixed bug, trimming values to null
------------------------------------------------------------
revno: 14568
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2014-03-31 14:54:07 +0200
message:
CSV import, fixed bug, trimming values to null
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-03-18 08:10:10 +0000
+++ dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/utils/CsvObjectUtils.java 2014-03-31 12:54:07 +0000
@@ -215,6 +215,8 @@
string = values[index];
}
+ string = StringUtils.trimToNull( string );
+
if ( string != null )
{
return max != null ? StringUtils.substring( string, 0, max ) : string;