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
a595fef2
Commit
a595fef2
authored
3 years ago
by
Guilherme Silva
Browse files
Options
Download
Email Patches
Plain Diff
Ajuste na verificação de existencia de plano de trablho do particiapente
parent
5d8cef8f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/Http/Controllers/TrabalhoController.php
+1
-1
app/Http/Controllers/TrabalhoController.php
with
1 addition
and
1 deletion
+1
-1
app/Http/Controllers/TrabalhoController.php
View file @
a595fef2
...
@@ -918,7 +918,7 @@ class TrabalhoController extends Controller
...
@@ -918,7 +918,7 @@ class TrabalhoController extends Controller
}
}
if
(
$request
->
has
(
'anexoPlanoTrabalho'
)
&&
array_key_exists
(
$part
,
$request
->
anexoPlanoTrabalho
)
&&
$request
->
nomePlanoTrabalho
[
$part
]
!=
null
)
{
if
(
$request
->
has
(
'anexoPlanoTrabalho'
)
&&
array_key_exists
(
$part
,
$request
->
anexoPlanoTrabalho
)
&&
$request
->
nomePlanoTrabalho
[
$part
]
!=
null
)
{
if
(
Arquivo
::
where
(
'participanteId'
,
$participante
->
id
)
->
count
())
{
if
(
Arquivo
::
where
(
'participanteId'
,
$participante
->
id
)
->
where
(
'trabalhoId'
,
$trabalho
->
id
)
->
count
())
{
$arquivo
=
Arquivo
::
where
(
'participanteId'
,
$participante
->
id
)
->
where
(
'trabalhoId'
,
$trabalho
->
id
)
->
first
();
$arquivo
=
Arquivo
::
where
(
'participanteId'
,
$participante
->
id
)
->
where
(
'trabalhoId'
,
$trabalho
->
id
)
->
first
();
$path
=
'trabalhos/'
.
$evento
->
id
.
'/'
.
$trabalho
->
id
.
'/'
;
$path
=
'trabalhos/'
.
$evento
->
id
.
'/'
.
$trabalho
->
id
.
'/'
;
$nome
=
$data
[
'nomePlanoTrabalho'
]
.
".pdf"
;
$nome
=
$data
[
'nomePlanoTrabalho'
]
.
".pdf"
;
...
...
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