From 993b1dbcf1f1828dd11001c359d0f17bcf3d847d Mon Sep 17 00:00:00 2001 From: elyambay Date: Thu, 31 Aug 2017 13:47:05 -0400 Subject: [PATCH] Fix de la carga del formulario de cargos 3 --- app/Http/Controllers/CargosClientesController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Http/Controllers/CargosClientesController.php b/app/Http/Controllers/CargosClientesController.php index d03d535..9488012 100644 --- a/app/Http/Controllers/CargosClientesController.php +++ b/app/Http/Controllers/CargosClientesController.php @@ -76,10 +76,14 @@ public function store(Request $request){ if(!$fields->has("car_company")){ $fields->put("car_company", 0); + }else{ + $fields->put("car_company", 1); } if(!$fields->has("tarjeta_flota")){ $fields->put("tarjeta_flota", 0); + }else{ + $fields->put("tarjeta_flota", 1); } if(!$fields->has("tipo_clase_idioma")){