Commit 0af8c51952c52551e89035408b0d557fa8f70363
Exists in
master
Merge branch 'master' into 'master'
Master(efernandez) See merge request !16
Showing
1 changed file
Show diff stats
src/js/controller.js
| ... | ... | @@ -398,7 +398,7 @@ angular.module('focaCrearHojaRuta') .controller('hojaRutaCtrl', |
| 398 | 398 | propiedad: ['codigo', 'tractor', 'semi'] |
| 399 | 399 | }; |
| 400 | 400 | focaModalService.modal(columnas, query, titulo).then(function(vehiculo) { |
| 401 | - if(vehiculoEnUso(vehiculo)) return; | |
| 401 | + if(!preCargados && vehiculoEnUso(vehiculo)) return; | |
| 402 | 402 | $scope.hojaRuta.vehiculo = vehiculo; |
| 403 | 403 | $scope.hojaRuta.transportista = vehiculo.transportista; |
| 404 | 404 | if(preCargados) { |