Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Walter Felipe
submeta
Commits
247ec8f1
Commit
247ec8f1
authored
Jul 20, 2022
by
GuilhermeGz
Browse files
Retirada exigencia de anexos já enviados na edição de proposta
parent
666ab493
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Http/Requests/UpdateTrabalho.php
View file @
247ec8f1
...
...
@@ -72,16 +72,16 @@ class UpdateTrabalho extends FormRequest
//$rules = [];
if
(
$evento
->
tipo
!=
"PIBEX"
){
$rules
[
'anexoPlanilhaPontuacao'
]
=
[
'
required
'
];
$rules
[
'anexoLattesCoordenador'
]
=
[
'
required
'
,
'mimes:pdf'
];
$rules
[
'anexoGrupoPesquisa'
]
=
[
'
required
'
,
'mimes:pdf'
];
$rules
[
'anexoAutorizacaoComiteEtica'
]
=
[
Rule
::
requiredIf
(
$this
->
justificativaAutorizacaoEtica
==
null
)];
$rules
[
'justificativaAutorizacaoEtica'
]
=
[
Rule
::
requiredIf
(
$this
->
anexoAutorizacaoComiteEtica
==
null
)];
$rules
[
'anexoPlanilhaPontuacao'
]
=
[
Rule
::
required
If
(
$projeto
->
anexoPlanilhaPontuacao
==
null
)
];
$rules
[
'anexoLattesCoordenador'
]
=
[
Rule
::
required
If
(
$projeto
->
anexoLattesCoordenador
==
null
)
,
'mimes:pdf'
];
$rules
[
'anexoGrupoPesquisa'
]
=
[
Rule
::
required
If
(
$projeto
->
anexoGrupoPesquisa
==
null
)
,
'mimes:pdf'
];
$rules
[
'anexoAutorizacaoComiteEtica'
]
=
[
Rule
::
requiredIf
(
$this
->
justificativaAutorizacaoEtica
==
null
&&
$projeto
->
anexoAutorizacaoComiteEtica
==
null
)];
$rules
[
'justificativaAutorizacaoEtica'
]
=
[
Rule
::
requiredIf
(
$this
->
anexoAutorizacaoComiteEtica
==
null
&&
$projeto
->
anexoAutorizacaoComiteEtica
==
null
)];
$rules
[
'pontuacaoPlanilha'
]
=
[
'required'
,
'string'
];
$rules
[
'linkGrupoPesquisa'
]
=
[
'required'
,
'string'
];
}
if
(
$evento
->
nome_docExtra
!=
null
){
$rules
[
'anexo_docExtra'
]
=
[
Rule
::
requiredIf
(
$evento
->
obrigatoriedade_docExtra
==
true
),
'file'
,
'mimes:zip,doc,docx,pdf'
,
'max:2048'
];
$rules
[
'anexo_docExtra'
]
=
[
Rule
::
requiredIf
(
$evento
->
obrigatoriedade_docExtra
==
true
&&
$evento
->
obrigatoriedade_docExtra
==
null
),
'file'
,
'mimes:zip,doc,docx,pdf'
,
'max:2048'
];
}
$rules
[
'editalId'
]
=
[
'required'
,
'string'
];
$rules
[
'marcado.*'
]
=
[
'required'
];
...
...
@@ -92,8 +92,8 @@ class UpdateTrabalho extends FormRequest
$rules
[
'linkLattesEstudante'
]
=
[
'required'
,
'string'
];
$rules
[
'anexoProjeto'
]
=
[
'
required
'
,
'mimes:pdf'
];
$rules
[
'anexoDecisaoCONSU'
]
=
[
Rule
::
requiredIf
(
$evento
->
consu
),
'mimes:pdf'
];
$rules
[
'anexoProjeto'
]
=
[
Rule
::
required
If
(
$projeto
->
anexoGrupoPesquisa
==
null
)
,
'mimes:pdf'
];
$rules
[
'anexoDecisaoCONSU'
]
=
[
Rule
::
requiredIf
(
$evento
->
consu
&&
$projeto
->
anexoDecisaoCONSU
==
null
),
'mimes:pdf'
];
return
$rules
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment