Skip to content
Snippets Groups Projects
Commit 8d8afbc0 authored by JediKev's avatar JediKev
Browse files

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.
parent 78a673fb
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment