solved issue with continuous updating

parent 44983ff1
...@@ -263,13 +263,14 @@ dashboardControllers.controller('StudentSetupCtrl', function StudentSetupCtrl( ...@@ -263,13 +263,14 @@ dashboardControllers.controller('StudentSetupCtrl', function StudentSetupCtrl(
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
// If we get with this parameter, we're back from a TPV transaction! // If we get with this parameter, we're back from a TPV transaction!
console.log(JSON.stringify($stateParams)); if ($stateParams.serial) {
if ($stateParams.serial && $stateParams.serial == 0) if ($stateParams.serial == 0)
ngToast.danger($translate.instant('tpv_error')); ngToast.danger($translate.instant('tpv_error'));
else { else {
$scope.formUser.license_number = $stateParams.serial; $scope.formUser.license_number = $stateParams.serial;
$scope.updateStudent(); $scope.updateStudent();
} }
}
/** /**
* Opens the modal window to select and buy license * Opens the modal window to select and buy license
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment