solved issue with continuous updating

parent 44983ff1
......@@ -263,12 +263,13 @@ dashboardControllers.controller('StudentSetupCtrl', function StudentSetupCtrl(
// ---------------------------------------------------------------------------
// If we get with this parameter, we're back from a TPV transaction!
console.log(JSON.stringify($stateParams));
if ($stateParams.serial && $stateParams.serial == 0)
ngToast.danger($translate.instant('tpv_error'));
else {
$scope.formUser.license_number = $stateParams.serial;
$scope.updateStudent();
if ($stateParams.serial) {
if ($stateParams.serial == 0)
ngToast.danger($translate.instant('tpv_error'));
else {
$scope.formUser.license_number = $stateParams.serial;
$scope.updateStudent();
}
}
/**
......
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