From 68767a7ee20b7ed433761b0ebc69067088c79774 Mon Sep 17 00:00:00 2001 From: Elias Yambay Date: Tue, 20 Sep 2022 09:00:32 -0400 Subject: [PATCH] corregir error de actualizacion de cargos --- app/Http/Controllers/CargosClientesController.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/CargosClientesController.php b/app/Http/Controllers/CargosClientesController.php index aa967db..5f237f2 100644 --- a/app/Http/Controllers/CargosClientesController.php +++ b/app/Http/Controllers/CargosClientesController.php @@ -213,7 +213,10 @@ public function update(Request $request, $id){ } $dbDetalle->fill($fields->toArray()); - $dbData->descripcion = $request->descripcion; + if($request->descripcion){ + $dbData->descripcion = $request->descripcion; + } + //dd($dbDetalle); if($request->excluir){