Unverified Commit 29305326 authored by Edgar Vinicius Carvalho Vital's avatar Edgar Vinicius Carvalho Vital Committed by GitHub
Browse files

Update StoreTrabalho.php

parent 25830059
......@@ -74,7 +74,7 @@ class StoreTrabalho extends FormRequest
$rules['media_do_curso.' . $value] = ['required', 'string'];
}
if ($this->funcaoParticipante[$value] == "Voluntário" || $this->funcaoParticipante[$value] == "Bolsista") {
if($evento->tipo != "CONTINUO" && ($this->funcaoParticipante[$value] == "Voluntário" || $this->funcaoParticipante[$value] == "Bolsista")){
$rules['anexoPlanoTrabalho.' . $value] = ['required'];
$rules['nomePlanoTrabalho.' . $value] = ['required', 'string'];
}
......@@ -184,4 +184,4 @@ class StoreTrabalho extends FormRequest
'anexo_SIPAC.*' => 'anexo_SIPAC'
];
}
}
\ No newline at end of file
}
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