← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 17315: Fixed bug - Yes/No DataElements are not showing the data in custom case entry form.

 

------------------------------------------------------------
revno: 17315
committer: Tran Chau<tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2014-10-29 23:40:22 +0700
message:
  Fixed bug - Yes/No DataElements are not showing the data in custom case entry form.
modified:
  dhis-2/dhis-services/dhis-service-tracker/src/main/java/org/hisp/dhis/program/DefaultProgramDataEntryService.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-tracker/src/main/java/org/hisp/dhis/program/DefaultProgramDataEntryService.java'
--- dhis-2/dhis-services/dhis-service-tracker/src/main/java/org/hisp/dhis/program/DefaultProgramDataEntryService.java	2014-10-17 03:31:13 +0000
+++ dhis-2/dhis-services/dhis-service-tracker/src/main/java/org/hisp/dhis/program/DefaultProgramDataEntryService.java	2014-10-29 16:40:22 +0000
@@ -669,13 +669,12 @@
         {
             if ( entityInstanceDataValue.equalsIgnoreCase( "true" ) )
             {
-                inputHTML = inputHTML.replace( "<option value=\"true\">", "<option value=\"" + i18n.getString( "true" )
-                    + "\" selected>" );
+                inputHTML = inputHTML.replace( "<option value=\"true\">", "<option value=\"true\" selected>" );
             }
             else if ( entityInstanceDataValue.equalsIgnoreCase( "false" ) )
             {
                 inputHTML = inputHTML.replace( "<option value=\"false\">",
-                    "<option value=\"" + i18n.getString( "false" ) + "\" selected>" );
+                    "<option value=\"false\" selected>" );
             }
         }