← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 15440: PDF data import fix - checkbox uncheck value change to null rather than 'false'.

 

------------------------------------------------------------
revno: 15440
committer: James Chang <jamesbchang@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2014-05-28 09:46:49 +0800
message:
  PDF data import fix - checkbox uncheck value change to null rather than 'false'.
modified:
  dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/pdfform/PdfDataEntryFormUtil.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/pdfform/PdfDataEntryFormUtil.java'
--- dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/pdfform/PdfDataEntryFormUtil.java	2014-03-18 08:10:10 +0000
+++ dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/pdfform/PdfDataEntryFormUtil.java	2014-05-28 01:46:49 +0000
@@ -192,6 +192,9 @@
         return cell;
     }
 
+    /**
+	 * Creates data value set from Input Stream (PDF) for PDF data import
+     */
     public static DataValueSet getDataValueSet( InputStream in )
     {
         PdfReader reader = null;
@@ -300,7 +303,7 @@
                 }
                 else if( fldValue.compareTo( "Off" ) == 0 )
                 {
-                    fldValue = "false";                                    
+                    fldValue = null;                                    
                 }                                
             }            
         }