From acd71396436214aaed570d97ed506f0ff501f3de Mon Sep 17 00:00:00 2001 From: elyambay Date: Mon, 29 Oct 2018 14:57:37 -0300 Subject: [PATCH] Hotfix: Estirar detalle de cargos segun idioma seleccionado --- app/Http/Controllers/CargosController.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/CargosController.php b/app/Http/Controllers/CargosController.php index cbcc9ad..abd5274 100644 --- a/app/Http/Controllers/CargosController.php +++ b/app/Http/Controllers/CargosController.php @@ -136,7 +136,11 @@ public function destroy($id){ } public function getDetalle(Request $request){ - $cargo = Cargo::find($request->id); + if(app()->getLocale() == "en"){ + $cargo = Cargo_en::find($request->id); + }else{ + $cargo = Cargo::find($request->id); + } return $cargo->detalle; }