Merge pull request #14198 from Gecka-Apps/12.0-printStdColumnContent-hook-improve

Improve printStdColumnContent by passing the $pdf object
This commit is contained in:
Laurent Destailleur 2020-07-24 13:20:03 +02:00 committed by GitHub
commit f68be08c67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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');