← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 9617: DataEntry - Multi-entry-org-unit form - Fixed bug save value.

 

------------------------------------------------------------
revno: 9617
committer: Hieu <hieu.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Sun 2013-01-27 00:30:38 +0700
message:
  DataEntry - Multi-entry-org-unit form - Fixed bug save value.
modified:
  dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/entry.js


--
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-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/entry.js'
--- dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/entry.js	2013-01-24 16:51:04 +0000
+++ dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/entry.js	2013-01-26 17:30:38 +0000
@@ -126,6 +126,13 @@
 
 function saveVal( dataElementId, optionComboId, fieldId )
 {
+	var fieldIds = fieldId.split( "-" );
+	
+	if ( fieldIds.length > 3 )
+	{
+		currentOrganisationUnitId = fieldIds[0];
+	}
+
     fieldId = '#' + fieldId;
 	
     var dataElementName = getDataElementName( dataElementId );