dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #15184
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 5379: Nullpointer exception when changeing due-dates in a program-satge-instance.
------------------------------------------------------------
revno: 5379
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2011-12-13 10:28:43 +0700
message:
Nullpointer exception when changeing due-dates in a program-satge-instance.
modified:
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/patient.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/patient.js'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/patient.js 2011-12-13 03:18:09 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/patient.js 2011-12-13 03:28:43 +0000
@@ -647,8 +647,8 @@
field.style.backgroundColor = '#ffffcc';
- var dateSaver = new DateSaver( programStageInstanceId, field.value, '#ccffcc' );
- dateSaver.save();
+ var dateDueSaver = new DateDueSaver( programStageInstanceId, field.value, '#ccffcc' );
+ dateDueSaver.save();
}
//----------------------------------------------------
@@ -746,7 +746,7 @@
// Saver objects
//-----------------------------------------------------------------------------
-function DateSaver( programStageInstanceId_, dueDate_, resultColor_ )
+function DateDueSaver( programStageInstanceId_, dueDate_, resultColor_ )
{
var SUCCESS = '#ccffcc';
var ERROR = '#ccccff';