← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 21045: Minor

 

------------------------------------------------------------
revno: 21045
committer: Markus Bekken <markus.bekken@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2015-11-12 22:46:22 +0100
message:
  Minor
modified:
  dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.angular.services.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-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.angular.services.js'
--- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.angular.services.js	2015-11-12 19:53:13 +0000
+++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.angular.services.js	2015-11-12 21:46:22 +0000
@@ -1443,8 +1443,11 @@
                             var valueFound = "''";
                             if(variableObject)
                             {
-                                if(variableObject.eventDate){
-                                    valueFound = VariableService.processValue(variableObject.eventDate, 'DATE');
+                                if(variableObject.variableEventDate){
+                                    valueFound = VariableService.processValue(variableObject.variableEventDate, 'DATE');
+                                }
+                                else {
+                                    $log.warn("no last event date found for variable: " + variableName);
                                 }
                             }
                             else