Skip to content

Commit

Permalink
Hotfix Filtro de niveles por rubro
Browse files Browse the repository at this point in the history
  • Loading branch information
elyambay committed Oct 22, 2018
1 parent 0d35ff8 commit 55f73ff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/Http/Controllers/ReporteController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2501,13 +2501,16 @@ public function getCargos(Request $request){

$cargosRubros = Cargos_rubro::where('rubro_id', $empresa->rubro_id)
->pluck('cargo_id');

if($this->getIdioma() == "en"){
$dbData = Cargo_en::orderBy('descripcion')
->whereIn('id', $cargosRubros)
->where('nivel_id', $id)
->pluck('id', 'descripcion');
}else{
$dbData = Cargo::orderBy('descripcion')
->whereIn('id', $cargosRubros)
->where('nivel_id', $id)
->pluck('id', 'descripcion');
}

Expand Down

0 comments on commit 55f73ff

Please sign in to comment.