← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 18614: minor

 

------------------------------------------------------------
revno: 18614
committer: Abyot Asalefew Gizaw <abyota@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2015-03-16 15:15:34 +0100
message:
  minor
modified:
  dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/report/tei-report-controller.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-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	2015-03-16 14:14:10 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/report/tei-report-controller.js	2015-03-16 14:15:34 +0000
@@ -1,3 +1,5 @@
+/* global trackerCapture, angular */
+
 //conroller for tei report
 trackerCapture.controller('TeiReportController',
         function($scope,
@@ -24,13 +26,14 @@
         $scope.programNames = selections.prNames;  
         $scope.programStageNames = selections.prStNames;
     
-        if($scope.selectedTei && $scope.selectedOrgUnit){            
-            $scope.getEvents();
-        }
-        
         angular.forEach(selections.enrollments, function(en){            
             $scope.enrollmentsByProgram[en.program] = en;
         });
+        
+        if( $scope.selectedTei ){            
+            $scope.getEvents();
+        }
+        
     });
     
     $scope.getEvents = function(){