Commit 5bfcb052 authored by unknown's avatar unknown
Browse files

Projetos de fluxo continuo não eram submetidos

parent 91af7454
......@@ -1295,16 +1295,20 @@ class TrabalhoController extends Controller
$data['curso'] = $request->outrocurso[$part];
}
if($evento->tipo!="PIBEX") {
if($evento->tipo != "CONTINUO"){
if($evento->tipo != "PIBEX") {
$data['media_do_curso'] = $request->media_do_curso[$part];
}
$data['nomePlanoTrabalho'] = $request->nomePlanoTrabalho[$part];
}
}
//função no projeto
if($evento->tipo != "CONTINUO"){
if (FuncaoParticipantes::where('nome', $request->funcaoParticipante[$part])->exists())
$data['funcao_participante_id'] = FuncaoParticipantes::where('nome', $request->funcaoParticipante[$part])->first()->id;
}
//instituição do participante
if ($request->instituicao[$part] != "Outra") {
......@@ -1332,6 +1336,7 @@ class TrabalhoController extends Controller
$participante->trabalho_id = $trabalho->id;
$participante->save();
if($evento->tipo != "CONTINUO"){
if ($request->estudante[$part] == true && $request['nomePlanoTrabalho'][$part] != null) {
$path = 'trabalhos/' . $evento->id . '/' . $trabalho->id . '/';
$nome = $request['nomePlanoTrabalho'][$part] . ".pdf";
......@@ -1347,6 +1352,7 @@ class TrabalhoController extends Controller
$arquivo->save();
}
}
}
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment