Commit 5b95ff084810391ea014e56e96d21f47777cea54

Authored by Nicolás Guarnieri
Exists in master and in 2 other branches develop, lab

Merge branch 'master' into 'master'

Master

See merge request !14
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 };