dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #35438
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 18145: individual-records-module - bug fix in custom data entry for number and text fields
------------------------------------------------------------
revno: 18145
committer: Abyot Asalefew Gizaw <abyota@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2015-01-29 22:06:18 +0100
message:
individual-records-module - bug fix in custom data entry for number and text fields
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 2015-01-17 07:41:26 +0000
+++ dhis-2/dhis-services/dhis-service-tracker/src/main/java/org/hisp/dhis/program/DefaultProgramDataEntryService.java 2015-01-29 21:06:18 +0000
@@ -713,7 +713,7 @@
private String populateCustomDataEntryForTextBox( DataElement dataElement, String inputHTML, String dataElementValue )
{
final String jsCodeForInputs = " name=\"entryfield\" tabIndex=\"$TABINDEX\" $DISABLED data=\"{compulsory:$COMPULSORY, deName:'$DATAELEMENTNAME', deType:'$DATAELEMENTTYPE'}\" options='$OPTIONS' maxlength=255 ";
- final String jsCodeForOnchange = " onchange=\"saveVal( '$DATAELEMENTID' )\" onkeypress=\"return keyPress(event, this)\" ";
+ final String jsCodeForOnchange = " onchange=\"saveVal( '$DATAELEMENTID', this.value )\" onkeypress=\"return keyPress(event, this)\" ";
// -------------------------------------------------------------
// Insert value of data element in output code
@@ -881,4 +881,4 @@
return result;
}
-}
\ No newline at end of file
+}