Skip to content

Commit

Permalink
fix(submission): failing test PdfHandlerTest:testPdfEmail
Browse files Browse the repository at this point in the history
  • Loading branch information
Davidmattei committed Oct 20, 2023
1 parent dd23f1f commit 285fb0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EMS/submission-bundle/src/Handler/PdfHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 285fb0d

Please sign in to comment.