← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 12899: Case entry, fixed issue with javascript variable having same name as function

 

------------------------------------------------------------
revno: 12899
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2013-11-07 18:24:50 +0100
message:
  Case entry, fixed issue with javascript variable having same name as function
modified:
  dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/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-caseentry/src/main/webapp/dhis-web-caseentry/javascript/entry.js'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/entry.js	2013-10-24 08:31:35 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/entry.js	2013-11-07 17:24:50 +0000
@@ -867,8 +867,8 @@
         }
 
         if ( data.program.type == '1' && data.programInstance.status == '1' ) {
-            var blockEntryForm = getFieldValue('blockEntryForm');
-            if( blockEntryForm == 'true' ){
+            var blockEntry = getFieldValue('blockEntryForm');
+            if( blockEntry == 'true' ){
                 blockEntryForm();
             }
         }