Commit 138ffa7f authored by ndurand's avatar ndurand
Browse files

[FIX] PrintContoller : correction options header/footer

parent ef733b72
......@@ -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 ".
......
Supports Markdown
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