From 285fb0dfdc4aab9aa7227c308a7d79ffccd6ac52 Mon Sep 17 00:00:00 2001 From: David mattei Date: Fri, 20 Oct 2023 08:13:37 +0200 Subject: [PATCH] fix(submission): failing test PdfHandlerTest:testPdfEmail --- EMS/submission-bundle/src/Handler/PdfHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EMS/submission-bundle/src/Handler/PdfHandler.php b/EMS/submission-bundle/src/Handler/PdfHandler.php index 678a26669..a54e99368 100644 --- a/EMS/submission-bundle/src/Handler/PdfHandler.php +++ b/EMS/submission-bundle/src/Handler/PdfHandler.php @@ -24,7 +24,7 @@ public function handle(HandleRequestInterface $handleRequest): HandleResponseInt { try { $endpoint = $this->twigRenderer->renderEndpointJSON($handleRequest); - $html = $this->twigRenderer->renderMessageBlock($handleRequest, 'pdfHtml') ?? ''; + $html = $this->twigRenderer->renderMessageBlock($handleRequest, 'pdfHtml') ?? $handleRequest->getMessage(); $pdfRequest = new PdfRequest($endpoint, $html); $pdfOutput = $this->pdfPrinter->getPdfOutput($pdfRequest->getPdf(), $pdfRequest->getPdfOptions());