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
2023baa1
Commit
2023baa1
authored
Jul 24, 2024
by
carlvercosaa
Browse files
anexo plano de trabalho error
parent
d992293f
Pipeline
#25
canceled with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/AdministradorController.php
View file @
2023baa1
...
@@ -1052,7 +1052,7 @@ class AdministradorController extends Controller
...
@@ -1052,7 +1052,7 @@ class AdministradorController extends Controller
'tipo'
=>
5
,
'tipo'
=>
5
,
]);
]);
$notificacao
->
save
();
$notificacao
->
save
();
Notification
::
send
(
$userTemp
,
new
AtribuicaoAvaliadorExternoNotification
(
$userTemp
,
$trabalho
,
$evento
,
$avaliador
->
trabalhos
()
->
where
(
'trabalho_id'
,
$trabalho
->
id
)
->
first
()
->
pivot
->
acesso
,
$evento
->
tipoAvaliacao
));
//
Notification::send($userTemp, new AtribuicaoAvaliadorExternoNotification($userTemp, $trabalho, $evento, $avaliador->trabalhos()->where('trabalho_id', $trabalho->id)->first()->pivot->acesso, $evento->tipoAvaliacao));
}
}
return
redirect
()
->
back
();
return
redirect
()
->
back
();
...
...
app/Http/Requests/StoreTrabalho.php
View file @
2023baa1
...
@@ -89,8 +89,8 @@ class StoreTrabalho extends FormRequest
...
@@ -89,8 +89,8 @@ class StoreTrabalho extends FormRequest
}
}
}
else
if
(
$evento
->
tipo
!=
"CONTINUO"
)
{
}
else
if
(
$evento
->
tipo
!=
"CONTINUO"
)
{
$rules
[
'anexoPlanoTrabalho'
]
=
[
'required'
];
//
$rules['anexoPlanoTrabalho'] = ['required'];
$rules
[
'nomePlanoTrabalho'
]
=
[
'required'
,
'string'
];
//
$rules['nomePlanoTrabalho'] = ['required', 'string'];
}
}
if
(
$this
->
has
(
'rascunho'
))
{
if
(
$this
->
has
(
'rascunho'
))
{
...
...
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