Improve printStdColumnContent by passing the $pdf object.

It isn't possible to replace the pdf edition done by this method without the $pdf object.
This commit is contained in:
Laurent Dinclaux 2020-07-08 14:48:34 +11:00
parent 0894dd6d74
commit 37401df106

View File

@ -1082,7 +1082,8 @@ abstract class CommonDocGenerator
$parameters = array(
'curY' => &$curY,
'columnText' => $columnText,
'colKey' => $colKey
'colKey' => $colKey,
'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');