=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/dataentry/dataentry-controller.js' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/dataentry/dataentry-controller.js 2015-04-17 07:19:16 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/dataentry/dataentry-controller.js 2015-04-17 07:23:33 +0000 @@ -90,7 +90,6 @@ $scope.getEvents = function(){ DHIS2EventFactory.getEventsByProgram($scope.selectedEntity.trackedEntityInstance, $scope.selectedProgram.id).then(function(events){ if(angular.isObject(events)){ - var eLen = 0; angular.forEach(events, function(dhis2Event){ if(dhis2Event.enrollment === $scope.selectedEnrollment.enrollment && dhis2Event.orgUnit){ if(dhis2Event.notes){ @@ -123,7 +122,6 @@ $scope.showDataEntry($scope.currentEvent, true); } } - eLen++; } }); }