Explicitly pass the pdf object by reference in the printStdColumnContent hook call.

This commit is contained in:
Laurent Dinclaux 2020-07-19 21:53:06 +11:00
parent 37401df106
commit 3cdabbaaff

View File

@ -1083,7 +1083,7 @@ abstract class CommonDocGenerator
'curY' => &$curY,
'columnText' => $columnText,
'colKey' => $colKey,
'pdf' => $pdf,
'pdf' => &$pdf,
);
$reshook = $hookmanager->executeHooks('printStdColumnContent', $parameters, $this); // Note that $action and $object may have been modified by hook
if ($reshook < 0) setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');