Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
prodige
bdl_visualiseur_core
Commits
138ffa7f
Commit
138ffa7f
authored
Nov 02, 2022
by
ndurand
Browse files
[FIX] PrintContoller : correction options header/footer
parent
ef733b72
Changes
1
Hide whitespace changes
Inline
Side-by-side
Controllers/PrintController.php
View file @
138ffa7f
...
...
@@ -292,8 +292,8 @@ class PrintController extends ControllerBase
$pageNumber
=
$requestBody
[
'pageNumber'
];
}
$header
=
isset
(
$requestBody
[
'options'
][
'header'
])
?
$requestBody
[
'options'
][
'header'
]
:
''
;
$footer
=
isset
(
$requestBody
[
'options'
][
'footer'
])
?
$requestBody
[
'options'
][
'footer'
]
:
''
;
$header
=
isset
(
$requestBody
[
'options'
])
&&
isset
(
$requestBody
[
'options'
][
'header'
])
?
$requestBody
[
'options'
][
'header'
]
:
''
;
$footer
=
isset
(
$requestBody
[
'options'
])
&&
isset
(
$requestBody
[
'options'
][
'footer'
])
?
$requestBody
[
'options'
][
'footer'
]
:
''
;
// Exécution du script node pour la génération du fichier pdf/img
$strCommand
=
"node "
.
realpath
(
dirname
(
__FILE__
))
.
"/../Scripts/puppeteerPrinting.js "
.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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