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
904e743f
Commit
904e743f
authored
Aug 31, 2022
by
GuilhermeGz
Browse files
Correção no erro exibido apos editar um rascunho ou proposta
parent
46d2122b
Changes
2
Show whitespace changes
Inline
Side-by-side
app/Http/Controllers/TrabalhoController.php
View file @
904e743f
...
...
@@ -840,7 +840,6 @@ class TrabalhoController extends Controller
$request
->
merge
([
'coordenador_id'
=>
$evento
->
coordenadorComissao
->
id
]);
$trabalho
=
Trabalho
::
find
(
$id
);
DB
::
beginTransaction
();
...
...
@@ -865,7 +864,6 @@ class TrabalhoController extends Controller
$trabalho
=
$this
->
armazenarAnexosFinais
(
$request
,
$pasta
,
$trabalho
,
$evento
);
$trabalho
->
save
();
if
(
$request
->
marcado
==
null
)
{
$idExcluido
=
$trabalho
->
participantes
->
pluck
(
'id'
);
...
...
@@ -880,10 +878,12 @@ class TrabalhoController extends Controller
}
}
foreach
(
$idExcluido
as
$key
=>
$value
)
{
$trabalho
->
participantes
()
->
find
(
$value
)
->
delete
();
}
$trabalho
->
refresh
();
if
(
$request
->
has
(
'marcado'
))
{
foreach
(
$request
->
marcado
as
$key
=>
$part
)
{
$part
=
intval
(
$part
);
...
...
@@ -1015,8 +1015,9 @@ class TrabalhoController extends Controller
}
if
(
!
$request
->
has
(
'rascunho'
))
{
Notification
::
send
(
$trabalho
->
proponente
->
user
,
new
SubmissaoNotification
(
$
id
,
$
trabalho
->
titulo
));
Notification
::
send
(
$trabalho
->
proponente
->
user
,
new
SubmissaoNotification
(
$trabalho
));
}
return
redirect
(
route
(
'proponente.projetos'
))
->
with
([
'mensagem'
=>
'Proposta atualizada!'
]);
}
catch
(
\
Throwable
$th
)
{
...
...
resources/views/proponente/projetos.blade.php
View file @
904e743f
...
...
@@ -109,11 +109,6 @@
Solicitar
Substituições
</
a
>
<
hr
class
=
"dropdown-hr"
>
{{
--<
hr
class
=
"dropdown-hr"
>
<
a
href
=
""
class
=
"dropdown-item"
style
=
"text-align: center"
>
Solicitar
Certificado
</
a
>--
}}
@
endif
<
a
href
=
"{{route('docComplementar.listar', ['projeto_id' =>
$projeto->id
])}}"
class
=
"dropdown-item"
style
=
"text-align: center"
>
Documentos
Complementares
...
...
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