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 ...@@ -74,7 +74,7 @@ class StoreTrabalho extends FormRequest
$rules['media_do_curso.' . $value] = ['required', 'string']; $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['anexoPlanoTrabalho.' . $value] = ['required'];
$rules['nomePlanoTrabalho.' . $value] = ['required', 'string']; $rules['nomePlanoTrabalho.' . $value] = ['required', 'string'];
} }
......
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