Commit 5b95ff084810391ea014e56e96d21f47777cea54
Exists in
master
Merge branch 'master' into 'master'
Master See merge request !14
Showing
1 changed file
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 | }; |