From 8d8afbc02dd7d626261a06c9b42a1eff4eaeae22 Mon Sep 17 00:00:00 2001 From: JediKev <kevin@enhancesoft.com> Date: Fri, 22 Mar 2019 09:36:43 -0500 Subject: [PATCH] issue: Task Print PDF This addresses an issue where clicking print on a Task throws a fatal error. This is due to the Task2PDF function passing a string instead of an array to `Mpdf::__construct()`. The `__construct()` of class Mpdf requires an array of configurations so we are now passing an array instead of a string. --- include/class.pdf.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/class.pdf.php b/include/class.pdf.php index df85cd2ef..de5529438 100644 --- a/include/class.pdf.php +++ b/include/class.pdf.php @@ -108,7 +108,7 @@ class Task2PDF extends mPDFWithLocalImages { $this->task = $task; $this->options = $options; - parent::__construct('', $this->options['psize']); + parent::__construct(['format' => $this->options['psize']]); $this->_print(); } -- GitLab