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
pad-upe
Commits
cae0fa69
Commit
cae0fa69
authored
Aug 01, 2023
by
PedroLopesUPE
Browse files
Bug Fix: bad method call
parent
205d5c8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/PadController.php
View file @
cae0fa69
...
@@ -898,7 +898,7 @@ class PadController extends Controller
...
@@ -898,7 +898,7 @@ class PadController extends Controller
'professores'
=>
$professores
]);
'professores'
=>
$professores
]);
}
}
private
function
Generate
_
PDF
(
$id
){
private
function
GeneratePDF
(
$id
){
$user
=
Auth
::
user
();
$user
=
Auth
::
user
();
$pad
=
Pad
::
find
(
$id
);
$pad
=
Pad
::
find
(
$id
);
$professores
=
User
::
join
(
'user_pad'
,
'user_pad.user_id'
,
'='
,
'users.id'
)
$professores
=
User
::
join
(
'user_pad'
,
'user_pad.user_id'
,
'='
,
'users.id'
)
...
@@ -932,7 +932,7 @@ class PadController extends Controller
...
@@ -932,7 +932,7 @@ class PadController extends Controller
$professor
->
ch_gestao
=
$this
->
get_carga_horaria
(
$avaliacoes
[
'gestao'
])
?
$this
->
get_carga_horaria
(
$avaliacoes
[
'gestao'
])
:
0
;
$professor
->
ch_gestao
=
$this
->
get_carga_horaria
(
$avaliacoes
[
'gestao'
])
?
$this
->
get_carga_horaria
(
$avaliacoes
[
'gestao'
])
:
0
;
if
(
$professor
->
ch_ensino
||
$professor
->
ch_pesquisa
||
$professor
->
ch_extensao
||
$professor
->
ch_gestao
)
{
if
(
$professor
->
ch_ensino
||
$professor
->
ch_pesquisa
||
$professor
->
ch_extensao
||
$professor
->
ch_gestao
)
{
UserPadController
::
Generate
_
PDF
(
$userPad
->
{
'id'
});
UserPadController
::
GeneratePDF
(
$userPad
->
{
'id'
});
}
}
}
}
...
...
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