Commit 3c670f5f authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Ajout des scriptVars dans les scripts des hearders et du footer

parent a0a0cde0
Pipeline #9654 failed with stage
in 12 seconds
......@@ -401,6 +401,7 @@ class Pdf implements ExporterInterface
'headerTitle' => $this->headerTitle,
'headerSubtitle' => $this->headerSubtitle,
'logo' => $this->logo);
$scriptVars = array_merge($scriptVars, current($this->scriptVars));
// le logo doit être passé ainsi pour pouvoir être référencé dans la balise <img> sous la forme "var:logo"
$this->getMpdf()->logo = $this->logo;
......@@ -492,6 +493,7 @@ class Pdf implements ExporterInterface
$scriptVars = array(
'footerTitle' => $this->footerTitle);
$scriptVars = array_merge($scriptVars, current($this->scriptVars));
if (isset($this->footerScripts['O'])) {
$footerOdd = $this->getRenderer()->render($this->footerScripts['O'], $scriptVars);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment