Commit 8908a86e601952cfe8af6ad10dbf67f1b029e22f

Authored by Jose Pinto
1 parent ca1b598e93
Exists in master and in 2 other branches develop, lab

fuera bucle contraseña al editar

Showing 1 changed file with 4 additions and 2 deletions   Show diff stats
src/js/controllerItem.js
... ... @@ -193,8 +193,10 @@ angular.module('focaAbmVendedorCobrador')
193 193 modalInstance.result.then(function() {
194 194 if (!$scope.edicion) $location.path('/vendedor-cobrador');
195 195 }, function() {
196   - $scope.cambiarContrasenia();
197   - focaModalService.alert('Debe crear una contraseña para el usuario');
  196 + if (!$scope.edicion) {
  197 + $scope.cambiarContrasenia();
  198 + focaModalService.alert('Debe crear una contraseña para el usuario');
  199 + }
198 200 });
199 201  
200 202 };