Fix missing $object

This commit is contained in:
Laurent Destailleur 2024-08-27 19:52:53 +02:00
parent 504b26f2e4
commit 4a2e001f1c

View file

@ -1830,8 +1830,10 @@ if ($resql) {
}
}
// Extra fields
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_print_fields.tpl.php';
// Fields from hook
$parameters=array('arrayfields'=>$arrayfields, 'obj'=>$objp, 'i'=>$i, 'totalarray'=>&$totalarray);
$parameters=array('arrayfields'=>$arrayfields, 'object'=>$object, 'obj'=>$objp, 'i'=>$i, 'totalarray'=>&$totalarray);
$reshook=$hookmanager->executeHooks('printFieldListValue', $parameters, $object, $action); // Note that $action and $objecttmpect may have been modified by hook
print $hookmanager->resPrint;