Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
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
f46285e9
Commit
f46285e9
authored
2 years ago
by
S-Nathalia
Browse files
Options
Download
Email Patches
Plain Diff
Adição da restrição de submeter um projeto com todas as infos
parent
d89fde29
master
carl-branch
dependabot/composer/dompdf/dompdf-1.2.2
dependabot/composer/symfony/http-kernel-4.4.50
dependabot/npm_and_yarn/decode-uri-component-0.2.2
dependabot/npm_and_yarn/express-4.18.2
dependabot/npm_and_yarn/json5-and-json5-2.2.3
dependabot/npm_and_yarn/loader-utils-and-webpack-cli-1.4.2
dependabot/npm_and_yarn/minimist-and-mkdirp-1.2.8
dependabot/npm_and_yarn/qs-and-express-6.11.0
excluir_projeto_submetido
updates_mar
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/Http/Requests/StoreTrabalho.php
+2
-1
app/Http/Requests/StoreTrabalho.php
app/Http/Requests/UpdateTrabalho.php
+3
-2
app/Http/Requests/UpdateTrabalho.php
with
5 additions
and
3 deletions
+5
-3
app/Http/Requests/StoreTrabalho.php
View file @
f46285e9
...
...
@@ -62,6 +62,7 @@ class StoreTrabalho extends FormRequest
}
if
(
$this
->
has
(
'rascunho'
))
{
$rules
=
[];
return
$rules
;
}
else
{
$evento
=
Evento
::
find
(
$this
->
editalId
);
...
...
@@ -123,4 +124,4 @@ class StoreTrabalho extends FormRequest
'nomePlanoTrabalho.*.required'
=>
'O :attribute é obrigatório'
,
];
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app/Http/Requests/UpdateTrabalho.php
View file @
f46285e9
...
...
@@ -56,6 +56,7 @@ class UpdateTrabalho extends FormRequest
$rules
[
'total_periodos.'
.
$value
]
=
[
'required'
,
'string'
];
$rules
[
'media_do_curso.'
.
$value
]
=
[
'required'
,
'string'
];
$rules
[
'nomePlanoTrabalho.'
.
$value
]
=
[
'required'
,
'string'
];
$rules
[
'anexoPlanoTrabalho.'
.
$value
]
=
[
'required'
,
'mimes:pdf'
];
}
}
...
...
@@ -67,7 +68,7 @@ class UpdateTrabalho extends FormRequest
return
$rules
;
}
else
{
$rules
=
[];
//
$rules = [];
if
(
$evento
->
tipo
!=
"PIBEX"
){
$rules
[
'anexoPlanilhaPontuacao'
]
=
[
'required'
];
$rules
[
'anexoLattesCoordenador'
]
=
[
'required'
,
'mimes:pdf'
];
...
...
@@ -102,4 +103,4 @@ class UpdateTrabalho extends FormRequest
];
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help