dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #31442
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 16015: Fixed bug - The event-date in event-list of vist schedule is displayed as undefined for overdue/s...
------------------------------------------------------------
revno: 16015
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2014-07-08 15:27:29 +0700
message:
Fixed bug - The event-date in event-list of vist schedule is displayed as undefined for overdue/schedule in future event-list.
modified:
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/activityPlan.js
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/smsReminder.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/activityPlan.js'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/activityPlan.js 2014-06-24 14:23:58 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/activityPlan.js 2014-07-08 08:27:29 +0000
@@ -279,7 +279,12 @@
for ( var i in json.events) {
var row = json.events[i];
var uid = row.event;
+
var eventDate = row.eventDate;
+ if(eventDate===undefined){
+ eventDate = row.dueDate;
+ }
+ eventDate = eventDate.substring(0,10);
table += "<tr><td><a href='javascript:loadDataEntryDialog( \"" + uid + "\") ' >" + eventDate + "</a></td></tr>";
}
table += "</table>";
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/smsReminder.js'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/smsReminder.js 2014-05-25 14:36:40 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/smsReminder.js 2014-07-08 08:27:29 +0000
@@ -324,6 +324,10 @@
var row = json.events[i];
var uid = row.event;
var eventDate = row.eventDate;
+ if(eventDate===undefined){
+ eventDate = row.dueDate;
+ }
+ eventDate = eventDate.substring(0,10);
table += "<tr><td><a href='javascript:programTrackingList( \"" + uid + "\") ' >" + eventDate + "</a></td></tr>";
}
table += "</table>";