Skip to content

Commit

Permalink
Hotfix: Estirar detalle de cargos segun idioma seleccionado
Browse files Browse the repository at this point in the history
  • Loading branch information
elyambay committed Oct 29, 2018
1 parent ef89313 commit acd7139
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/Http/Controllers/CargosController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit acd7139

Please sign in to comment.