=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/dataentry/new-event-controller.js' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/dataentry/new-event-controller.js 2016-01-08 13:43:59 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/dataentry/new-event-controller.js 2016-01-14 19:36:41 +0000 @@ -143,6 +143,11 @@ if(angular.isObject($scope.model.selectedStage)){ stage = $scope.model.selectedStage; prepareEvent(); + + //If the caller wants to create right away, go ahead and save. + if (autoCreate) { + $scope.save(); + }; } }); @@ -336,12 +341,6 @@ }*/ //end referral logic - - //If the caller wants to create right away, go ahead and save. - if (autoCreate) { - $scope.save(); - }; - $scope.cancel = function () { $modalInstance.close(); };