=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/dashboard/dashboard-controller.js' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/dashboard/dashboard-controller.js 2014-09-08 09:08:39 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/dashboard/dashboard-controller.js 2014-10-08 08:48:34 +0000 @@ -38,6 +38,7 @@ $scope.selectedTeiId = ($location.search()).tei; $scope.selectedProgramId = ($location.search()).program; $scope.selectedOrgUnit = storage.get('SELECTED_OU'); + $scope.selectedProgram; $scope.selectedTei; @@ -71,8 +72,7 @@ }); }); }); - } - + } //listen for any change to program selection //it is possible that such could happen during enrollment. === modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/enrollment/enrollment.html' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/enrollment/enrollment.html 2014-10-03 08:25:10 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/enrollment/enrollment.html 2014-10-08 08:48:34 +0000 @@ -57,14 +57,14 @@ class="btn btn-danger horizonal-spacing" ng-if="selectedEnrollment.followup" ng-click="markForFollowup()"> - + === modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/report/tei-report-controller.js' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/report/tei-report-controller.js 2014-10-01 15:19:59 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/report/tei-report-controller.js 2014-10-08 08:48:34 +0000 @@ -37,7 +37,7 @@ $scope.selectedProgram = selections.pr; $scope.selectedEnrollment = selections.enrollment; - if($scope.selectedTei){ + if($scope.selectedTei && $scope.selectedOrgUnit){ $scope.getEvents(); } }); @@ -46,7 +46,7 @@ $scope.dataFetched = false; $scope.dataExists = false; - var programId = null, orgUnitId = null; + var programId = null; if($scope.selectedProgram){ programId = $scope.selectedProgram.id; @@ -57,7 +57,7 @@ $scope.report[pr.id] = {}; }); - DHIS2EventFactory.getEventsByProgram($scope.selectedTei.trackedEntityInstance, orgUnitId, programId).then(function(eventList){ + DHIS2EventFactory.getEventsByProgram($scope.selectedTei.trackedEntityInstance, $scope.selectedOrgUnit.id, programId).then(function(eventList){ angular.forEach(eventList, function(ev){ if(ev.program){ ev.visited = true; === modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/views/home.html' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/views/home.html 2014-08-27 10:38:27 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/views/home.html 2014-10-08 08:48:34 +0000 @@ -73,8 +73,6 @@