Commit 5c0971eea73f9794b3238e7f6c78205cc97a7661
1 parent
90642465ec
Exists in
master
and in
1 other branch
bug fix
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/js/controller.js
| ... | ... | @@ -5,7 +5,7 @@ angular.module('focaBusquedaCliente') |
| 5 | 5 | function($uibModalInstance, focaBusquedaClienteService, $scope, $filter, |
| 6 | 6 | $uibModal, focaModalService, $timeout, vendedor, cobrador) { |
| 7 | 7 | |
| 8 | - $scope.cobrador = cobrador; | |
| 8 | + $scope.cobrador = cobrador ? cobrador : {}; | |
| 9 | 9 | $scope.vendedor = vendedor ? vendedor : {}; |
| 10 | 10 | $scope.filters = ''; |
| 11 | 11 | $scope.primerBusqueda = false; |