From b7a9700f90a98f2497c2522c9e758474cc2dcf97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Thu, 18 Feb 2021 10:12:57 +0100 Subject: [PATCH] Fix issue with entity footer items causing 500 error --- app/Services/PdfMaker/Design.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/PdfMaker/Design.php b/app/Services/PdfMaker/Design.php index 948f0d4bbf3f..2ae4b997a9ef 100644 --- a/app/Services/PdfMaker/Design.php +++ b/app/Services/PdfMaker/Design.php @@ -423,7 +423,7 @@ class Design extends BaseDesign { $_variables = array_key_exists('variables', $this->context) ? $this->context['variables'] - : []; + : ['values' => ['$entity.public_notes' => nl2br($this->entity->public_notes), '$entity.terms' => $this->entity->terms, '$entity_footer' => $this->entity->footer], 'labels' => []]; if ($this->type == 'delivery_note') { return [];