Skip to content

Commit

Permalink
corrigindo $programas que tem de ficar antes
Browse files Browse the repository at this point in the history
  • Loading branch information
masakik committed Apr 14, 2021
1 parent c50ac96 commit b5abb40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Http/Controllers/PosgradController.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ public function index(Request $request)
{
$this->authorize('admin');

$programas = SELF::listarProgramas();

# tratando POST
if (isset($request->codcur)) {
if ($request->codcur != 0) {
Expand All @@ -24,7 +26,6 @@ public function index(Request $request)
session(['codcur' => $request->codcur]);
}

$programas = SELF::listarProgramas();
$alunos = session('codcur') ? json_decode(json_encode(Posgraduacao::alunosPrograma(18, session('codcur')))) : '';

return view('posgrad.index', compact('programas', 'alunos'));
Expand Down

0 comments on commit b5abb40

Please sign in to comment.