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
c0383773
Unverified
Commit
c0383773
authored
Jul 02, 2021
by
Gabriel Antônio da Silva
Committed by
GitHub
Jul 02, 2021
Browse files
Merge pull request #147 from Gabriel-31415/master
ajustes na visu proj do admin
parents
d8d8b2d4
bc3a8113
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/TrabalhoController.php
View file @
c0383773
...
...
@@ -721,8 +721,7 @@ class TrabalhoController extends Controller
$pasta
=
'trabalhos/'
.
$evento
->
id
.
'/'
.
$trabalho
->
id
;
$trabalho
=
$this
->
armazenarAnexosFinais
(
$request
,
$pasta
,
$trabalho
,
$evento
);
$trabalho
->
save
();
// dd($request->all());
// dd($request->has('justificativaAutorizacaoEtica') && ($request->justificativaAutorizacaoEtica == null));
if
(
$request
->
has
(
'anexoAutorizacaoComiteEtica'
)){
$trabalho
->
justificativaAutorizacaoEtica
=
null
;
$trabalho
->
save
();
...
...
@@ -732,27 +731,24 @@ class TrabalhoController extends Controller
}
$trabalho
->
update
(
$request
->
except
([
'anexoProjeto'
,
'anexoDecisaoCONSU'
,
'anexoPlanilhaPontuacao'
,
'anexoLattesCoordenador'
,
'anexoGrupoPesquisa'
,
'justificativaAutorizacaoEtica'
,
'anexoAutorizacaoComiteEtica'
'anexoLattesCoordenador'
,
'anexoGrupoPesquisa'
]));
// dd($trabalho);
if
(
$request
->
marcado
==
null
)
{
$idExcluido
=
$trabalho
->
participantes
->
pluck
(
'id'
);
}
else
{
$idExcluido
=
[];
}
// dd($idExcluido);
// dd(array_search( 2, $request->marcado));
foreach
(
$request
->
participante_id
as
$key
=>
$value
)
{
// $value = intval($value);
if
(
$request
->
marcado
!=
null
&&
array_search
(
$key
,
$request
->
marcado
)
===
false
){
if
(
$value
!==
null
)
array_push
(
$idExcluido
,
$value
);
}
}
// dd($idExcluido);
foreach
(
$idExcluido
as
$key
=>
$value
)
{
$trabalho
->
participantes
()
->
find
(
$value
)
->
delete
();
}
...
...
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